Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Using temporary file as body of email

by THRAK (Monk)
on Apr 20, 2001 at 00:20 UTC ( [id://73976]=note: print w/replies, xml ) Need Help??


in reply to Using temporary file as body of email

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
  • Comment on Re: Using temporary file as body of email

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://73976]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (1)
As of 2024-04-25 03:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found