LPM: Email attachments

Rich Bowen rbowen at rcbowen.com
Wed Mar 22 14:05:49 CST 2000


>   # mail the message
>   open MAIL, "|/usr/sbin/sendmail -oi -t" or die "can't open sendmail:
> $!";
>   $mail->print(\*MAIL);
>   close MAIL or die "can't close sendmail: $!";

Thanks. Sample code is nice.
I'm wondering if I can use something other than sendmail to actually
send the mail. I use Mail::Sendmail because 1) it does not require
spawning another process and 2) it works on NT. I'll have to play with
this to see if I can send the mssage to Mail::Sendmail instead of
sendmail. Or, perhaps I'll just have to write a module that inherits
from those two modules, and just does what I need.
Thanks for the code, though. That helps.

Rich
-- 
http://www.ApacheUnleashed.com/
Lexington Perl Mongers - http://lexington.pm.org/
PGP Key - http://www.rcbowen.com/pgp.txt



More information about the Lexington-pm mailing list