Test mode for email

Joel Peshkin bugreport at peshkin.net
Tue Oct 14 21:36:11 UTC 2003

Jonathan Schatz wrote:

>i usually do this (sorry for the weird line wrapping):

I think what we want to do is to add a control that replaces ....
open(SENDMAIL, "|/usr/lib/sendmail $sendmailparam -t -i")
open(SENDMAIL, "|/usr/lib/sendmail $sendmailparam $testermail ")

By getting rid of the -t option to sendmail, ALL mail will actually be 
sent to the tester but the headers inside the message will indicate 
exactly who would have gottent them mail had it not been redirected.   
This lets a copy of I live site be used for testing email notifications 
without confusing the users.

More information about the developers mailing list