Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: Perl and HTML E-mail

by mellin (Scribe)
on Feb 11, 2009 at 16:25 UTC ( [id://743103]=note: print w/replies, xml ) Need Help??


in reply to Re: Perl and HTML E-mail
in thread Perl and HTML E-mail

Yeah, that was what I figured out myself as well, but I don't know how would I do change the content type header with Net::SMTP module?

I found MIME::Lite::TT::HTML and even though I find the template solution to be a bit too much, it is really simple to use.

Replies are listed 'Best First'.
Re^3: Perl and HTML E-mail
by Anonymous Monk on Feb 12, 2009 at 08:43 UTC
    $smtp=Net::SMTP->new('your smtp server'); $smtp->mail('your email address'); $smtp->to('Your reciepient'); $smtp->data(); $smtp->datasend("Content-type:TEXT/html,charset=utf-8\n"); $smtp->datasend("To: someone\@somedomain.com\n"); $smtp->datasend("\n"); $smtp->datasend("<html>Your html here!</html>"); $smtp->dataend(); $smtp->quit();

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-04-20 01:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found