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

Re: Re: Re: How to format email so Outlook renders HTML

by pinetree (Scribe)
on Aug 29, 2001 at 07:47 UTC ( [id://108676]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: How to format email so Outlook renders HTML
in thread How to format email so Outlook renders HTML

MIME::Lite is definately the way to go. Take a look at the examples...

One solution to the plain text/html quandry is to include a text/plain message first and then the text/html so that your email message looks something like:
multipart/mixed
- text/plain
- text/html

### Create the multipart "container":
    $msg = MIME::Lite->new( 
                 From    =>'me@myhost.com',
                 To      =>'you@yourhost.com',
                 Cc      =>'some@other.com, some@more.com',
                 Subject =>'A message with 2 parts...',
                 Type    =>'multipart/mixed'
		 );
    
    ### Add the text message part:
    ### (Note that "attach" has same arguments as "new"):
    $msg->attach(Type     =>'text',   
                 Data     =>$text_msg,
		 );  
     
    ### Add the HTML part:
    $msg->attach(Type     =>'text/html',
                 Data     =>$html_msg,
		 );
Oren

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2024-03-28 17:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found