Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Sub routine used to send a mail

by barrd (Canon)
on Sep 30, 2003 at 09:59 UTC ( [id://295230]=note: print w/replies, xml ) Need Help??


in reply to Sub routine used to send a mail

I prefer to use MIME::Lite just to make life easier, following is a short sample:
use MIME::Lite; my $msg = MIME::Lite->new( From => $from_address, To => $to_address, Subject => 'Hello world', Data => 'some body text' ); $msg->send;
This can of course be incorporated into a sub if required.

Update: fixed some obvious syntax errors (well, obvious after a cup o' joe ;)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2024-04-19 20:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found