Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how do you send html and text emails out at the same time 1

Status
Not open for further replies.

Developer8

Programmer
Sep 25, 2002
14
US
Is there a special procedure for sending html and text emails out at the same time? In reference to doing a mass mailing.... Thanks.
 
The usual way is to create a MIME message in which you have the text before the first boundary. //Daniel
 
Thanks Daniel,

Your advice helped! Here's the code from my Perl program, and it seems to be working fine.

print MAIL<<EndMAIL;
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary=&quot;06986E0E1E196312E032AFBC&quot;

This is a multi-part message in MIME format.

--06986E0E1E196312E032AFBC
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7 bit

$plain_text

--06986E0E1E196312E032AFBC
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

$html_text
--06986E0E1E196312E032AFBC--

EndMAIL
;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top