Problems? Is your data what you think it is? | |
PerlMonks |
Re: Using temporary file as body of emailby THRAK (Monk) |
on Apr 20, 2001 at 00:20 UTC ( [id://73976]=note: print w/replies, xml ) | Need Help?? |
I'm a little short on time at the moment so there's not a lot of thought here, but a couple of quick things...
1) Why create the temp file and mail that? Why not create a $msg variable on the fly by substituting the config values from a template. Or you could build the whole format on the fly and save it in $msg. Then just send $msg. 2) You may want to look into Net::SMTP instead of just piping to sendmail. Fewer pitfalls. -THRAK www.polarlava.com
In Section
Seekers of Perl Wisdom
|
|