John Scanlon wrote:
>
> We've tried to use both the Mail::Sendmail and Mail::Sender modules with
> Embperl, and have come across the same difficulty with both: a script will
> work correctly once (i.e. will send mail out through an SMTP server) and
> then will not work again until Apache is re-booted. Can anyone shed some
> light, or offer suggestions? We're using Embperl 1.3b3, Apache 1.3.12 and
> Mod_Perl 1.23.
I use Mail::Sender in my community website without any problems. The
code looks something like this:
use Mail::Sender;
$sender = new Mail::Sender ({smtp => "mail.nilspace.com"});
$sender->MailMsg ({from => '[EMAIL PROTECTED]',
replyto => "$message->{name} <$message->{email}>",
to => $author->{email},
subject => "Guestbook: $author->{tourname}",
msg => "$text\n\n$extra"
});
undef $sender;
Whenever someone posts a message in a journal guestbook, the message is
also sent by email to the author of the journal. This is what's
happening here.
I don't have any special httpd.conf settings to cater to Mail::Sender,
so let me know if this code is any different from the way you do it...
perhaps the 'undef $sender' makes a difference for subsequent calls.
HTH
-Neil
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]