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
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
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