RE: Recommendations for testing e-mail output

2003-10-29 Thread Gordon Henriksen
Use your test script as the MTA (instead of sendmail/qmail-inject/etc.)? Print the oks from your pseudo-MTA. -- Gordon Henriksen IT Manager ICLUBcentral Inc. [EMAIL PROTECTED] > -Original Message- > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Mark Stosberg > Sent: Tuesday, Octobe

Re: Recommendations for testing e-mail output

2003-10-28 Thread Danny Faught
Mark Stosberg wrote: I'm looking at writing a test for an e-mail that's generated by Perl. I'm wondering about the best way to do this. A colleague of mine wrote fakesmtpd just for such an occasion - http://www.jera.com/tools/fakesmtpd/. It's written in Perl. -- Danny R. Faught Tejas Software

Re: Recommendations for testing e-mail output

2003-10-28 Thread Ovid
When I encounter something like this, I usually just temporarily override the function/method that actually sends the mail: my $email_text; my $mail_func = 'My::Mail::Module::send'; { no warnings 'redefine'; local *$mail_func = sub { $email_text = shift }; } ok($email_text, "$m