Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Sending email with Perl

by snadra (Scribe)
on Jul 21, 2003 at 13:56 UTC ( #276279=note: print w/replies, xml ) Need Help??


in reply to Sending email with Perl

Hello,

I think it is the easiest to use the MIME::Lite Module for that.
use MIME::Lite; # simple message, just text: $msg = MIME::Lite->new( From =>'me@myhost.com', To =>'you@yourhost.com', Cc =>'some@other.com, some@more.com', Subject =>'Hi!', Data =>"The content of the message\n..." );
You can also send messages with attagements or HTML messages...

snadra

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://276279]
help
Chatterbox?
[Corion]: 1nickt: Oh - indeed! HTTP::Tiny is somewhat closer to WWW::Mechanize than I thought, thank you!
[Corion]: Discipulus: Yes, but it seems to have handling in place to tell a cookie jar to extract cookies from responses and add them to other requests, which is what's needed
Discipulus must give a try to this module anyway..
[Discipulus]: so, combined with HTTP::CookieJar ?

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2017-05-23 18:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?