问题描述
我正在写一个程序,通过电子邮件发送许多(〜100)个客户,我想在大家垃圾邮件之前测试。
我想做一个针对我的生产数据进行测试运行,并将消息实际发送到SMTP服务器,但我不希望SMTP服务器实际传递消息。我希望服务器从我的应用程序的角度看起来像一个真正的SMTP服务器,而不是传递消息,我只想让它存储消息,并记录发生了什么。
有没有专门为测试而设计的SMTP服务器?
有没有人知道如何配置exim或postfix的行为就像上面已经描述的那样
你用什么来测试大量电子邮件传递?
java可以使用
它很容易使用,您可以验证您正在拦截的电子邮件的每个方面。
这是用于单元测试的Java SMTP服务器实现。 (只需确保将电子邮件重定向到运行哑铃的机器...)
我刚刚发现了另一种方法几乎相同:
Greenmail还支持POP3,具有SSL的IMAP,以便您可以对其进行测试。
I am writing a program that will be emailing reports out many (~100) clients which I want to test before I spam everyone.
I want to do a test run against my production data and actually send the messages to a SMTP server, but I don't want the SMTP server to actually deliver the messages. I want the server to act like a real SMTP server from the perspective of my application, but instead of delivering messages, I just want it to store the messages, and log what happened.
Is there a SMTP server specifically designed for testing purposes?
Does anyone know of a way to configure exim or postfix to behave like I have described above
What do you use to test a mass-email delivery?
In java you can use dumbster
Its easy to use and you can validate every aspect of the email you are intercepting.
It's a Java SMTP server implementation meant for unit testing. (Just make sure you redirect your email to the machine running dumbster...)
I just found another alternative that do almost the same: Greenmail
Greenmail also support POP3, IMAP with SSL so you can test your client against it.
这篇关于电子邮件测试方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!