Method for email testing

后端 未结 14 1656
眼角桃花
眼角桃花 2020-12-24 01:56

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 producti

相关标签:
14条回答
  • 2020-12-24 02:37

    http://skaraarslan.blogspot.com/2008/02/how-to-check-email-works-without-using.html

    (this presumes you are using .net to send emails)

    0 讨论(0)
  • 2020-12-24 02:47

    A good program for email testing is smtp4dev (Windows only).

    It's a dummy SMTP server. Sits in the system tray and does not deliver the received messages. The received messages can be quickly viewed, saved and the source/structure inspected.

    http://smtp4dev.codeplex.com/

    0 讨论(0)
  • 2020-12-24 02:49

    At my office, we have a server that is set up to always send all incoming mail to one address, regardless of who it's actually addressed to. We just point all our testing environments at that server and watch the QA mailbox fill up. I don't know what server it is, but it's probably some open source thing someone found.

    0 讨论(0)
  • 2020-12-24 02:50

    If you're looking to manually test that the email sends and that the email template has the right kind of html and css that you're expecting, then I would recommend maildev https://www.npmjs.com/package/maildev. You can install and run it as a node module and also as a docker container! I've found it extremely handy for basic sanity testing of emails.

    0 讨论(0)
  • 2020-12-24 02:51

    After not beeing happy with the solutions I found, I ended up writing developmentSMTP, easy to use, 100% Java --> cross platform.

    Supports writing emails to file, forwarding emails or simply printing them on stdout.

    0 讨论(0)
  • 2020-12-24 02:52

    Given that you mention exim and postfix (which I'm taking to be some kind of unix stuff), this answer might not be as useful as it could be, but check out Neptune. It's a fake SMTP server designed for automated testing. If you've got a spare windows box floating around, you could put Neptune on that then configure your app to send "through" the Neptune server.

    0 讨论(0)
提交回复
热议问题