Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Form mail script

by LTjake (Prior)
on Aug 21, 2002 at 16:50 UTC ( [id://191791]=note: print w/replies, xml ) Need Help??


in reply to Form mail script

Everyone seems to have their preference for a mail module. I use Mail::Sendmail. It's platform independent, yehaw.

Sample code (previously posted here, and here):
use Mail::Sendmail; # Create the message hash my %mail = ( To => 'You <your@address.com>', # To address.. From => 'Me <my@address.com>', # From address.. Message => 'Hello, world!', # The message body.. Smtp => 'your.mail.server' # erase this if you want to use "loc +alhost" (default) ); # Send the message unless (sendmail(%mail)) { # Error! } # All is well.
Update:
Whoops, i forgot to add that, the Mail::Sendmail FAQ talks about sending HTML email.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-03-28 22:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found