RE: Recommendations for testing e-mail output

2003-10-29 Thread Gordon Henriksen
: Tuesday, October 28, 2003 3:03 PM > To: [EMAIL PROTECTED] > Subject: Recommendations for testing e-mail output > > > Hello, > > 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.

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

Recommendations for testing e-mail output

2003-10-28 Thread Mark Stosberg
Hello, 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. Here are some possibilities I have considered: - use Test::Mail. While it's designed for the task, I'm not fond of the complexity of setting up an e-mail address which sen