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!

Recipient Email Pgm Detection

Status
Not open for further replies.

Developer8

Programmer
Sep 25, 2002
14
US
How do you detect if a recipient's email program understands HTML code?
 
There isn't - sendmail doesn't send mail to e-mail clients, it sends/relays to servers. The POP3 server doesn't care much either. It just gets the mail off the server and sends it to the client as is. It is up to the client to handle the mail it gets.
 
Thanks everyone for your help. Here's what I've done to solve the problem. This code is from my Perl program ... and it works.

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