One of the applications that I have to do an enhancement to soon has a number of emails that are sent from the application. To the point of verification, I need to see the delivery failure notifications. I've done some preliminary searching on how to do this, but, haven't managed to find anything that I could consider useful. The email client that would be used would be Outlook 2007 or 2010 on an exchange server.
|
Finally figured it out, with the exception of reportitems such as Undeliverables. Most of the current code is from snippets that I put together to make it work.
|
|||||
|
|
I think this is related to this question which suggests a SMTP pretend server: but I suspect this would need to be extended to 'know' about certain emails and be able to respond to doesnt@exist.com in the correct way. |
|||
|
|
You could use a test email account and access it using an IMAP/POP client? What I do in my Django apps is I set the email backend to a file based one for testing. Emails are then not sent to the addresses but are stored in individual log files. I can then test the content of these files. There are two similar but different scenarios here. One is testing email delivery (this is dependent on your provider) and the other is testing the content of email being sent from your application. |
|||
|