Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Sending mails

by hawson (Monk)
on Feb 09, 2004 at 23:30 UTC ( #327774=note: print w/replies, xml ) Need Help??


in reply to Sending mails

I have used Mail::Sendmail to good effect in a few scripts. It takes a hash with all of the various parts, and then does the rest. Example:
use Mail::Sendmail; my %mail = ( Subject => "test email subject", From => "mailchecker@localhost.localdomain", To => "myself@domain.com", body => "This message is a test. Whee!" ); sendmail %mail;
I also use HTML::Template for the emails that get sent since that generate cleaner code (for me, at least).

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2023-01-28 17:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?