I am looking for a free test smptp server which can save emails in to files for my development tests. Since my development environment is windows I prefer test email server to run on windows but I can consider to install any other linux based alternatives.
相关问题
- Django & Amazon SES SMTP. Cannot send email
- Inheritance impossible in Windows Runtime Componen
- how to get running process information in java?
- Is TWebBrowser dependant on IE version?
- How can I have a python script safely exit itself?
相关文章
- c#发送邮件,附件损坏
- 如何让cmd.exe 执行 UNICODE 文本格式的批处理?
- 怎么把Windows开机按钮通过修改注册表指向我自己的程序
- Warning : HTML 1300 Navigation occured?
- Web Test recorder does not allow me to record a te
- Bundling the Windows Mono runtime with an applicat
- Windows 8.1 How to fix this obsolete code?
- Factory_girl has_one relation with validates_prese
The Python smtpd module has a DebuggingServer which prints all messages to stdout. If you redirect them to a file, you should be done.
We used Mailtrap for this. It give you remote smtp server account and direct access to all mails in it. So you just enter given smtp credential in your application and after that all email sent by your system will be visible on mailtrap. And you can easily look source code of mail, and download it to your local system. You can see example here
On mailtrap you can have as many smtp account as you want( different account for different application environments, or different application) Also you can manage access to your account ( so only trusted people will se your emails) and you can forward some emails to real email addresses.
There are a few:
Or you can also set it up in your web.config to just store the e-mails in the file system (the config way of what "silky" has proposed in code):
Marc
-- Edit:
This advice only valid if you're using .NET
Check this out. If you set it appropriately, it will just store your emails on disk :)
-- Edit
Just in case some people don't get it, this means you don't need another SMTP server for test/dev, you just set the variable appropriately.
-- Edit
For completeness, as marc_s shows below, you can set this in configs nicely via:
Below are the links i found
A Simple SMTP Server Mock for .NET\ -- .NET
Dumbster -- Java
mocksmtpd -- Ruby
Use depending on the Language and Platform of your choice.
There is also an earlier post for .NET Testing SMTP with .net
Papercut (http://papercut.codeplex.com/discussions) is the simplest and most elegant one so far. Simple exe file that listens to port 25 and displays emails.