I've had quite a bit of success with the MIME::Lite module. It isn't
installed with Perl, but CPAN has no problem installing it.
It has a similar syntax to Mail::Sender. I haven't tried sending
attachments with it, but it seems like that MIME::Lite might be able to
do that as well.
-Akshay
Neil Gunton wrote:
>
> 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]
--
http://www.5vs1.com - A Pearl Jam Fan Site
"Only when the last tree is dead, the last river damned, and the last
field paved, will we realize that we can't eat money."
"Time is long and life is short, so begin to live while you still can."
-Eddie Vedder
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]