Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: HTML/Plain Text mail

by arhuman (Vicar)
on Jan 04, 2002 at 22:34 UTC ( #136335=note: print w/replies, xml ) Need Help??

in reply to HTML/Plain Text mail

A good way is probably Mail::Sender as AidanLee already pointed out below.

If you (really have to) do it "by hand" using low level modules,
You'll have to give this kind of struct to the body :
--$boundary Content-Type: multipart/alternative; boundary=\"$boundary2\" --$boundary2 Content-Type: text/plain; charset="..." Content-Transfer-Encoding: quoted-printable txt goes here --$boundary2 Content-Type: text/html; charset="..." Content-Transfer-Encoding: quoted-printable html goes here --$boundary2-- --$boundary--

Don't forget to add the :
content-type: multipart/mixed; boundary=\"$boundary\"
in the header.

Hopes this helps...

Added the Mail::Sender mention.
Noticed that it was already given by AidanLee.I gave credits.

"Only Bad Coders Code Badly In Perl" (OBC2BIP)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://136335]
[atcroft]: Lady_Aleena: So you are shoving the disparate data into a structure and returning the structure, so you can run it through a (probably simpler) routine that displays only?
[Lady_Aleena]: atcroft, that is the goal.
[Lady_Aleena]: atcroft, this is the last of the printing modules I am going to make stop printing, I think.

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2017-05-29 02:33 GMT
Find Nodes?
    Voting Booth?