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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Send email using html format 1

Status
Not open for further replies.

bonifale

Programmer
Sep 4, 2003
74
GB
I hope somebody can put me out of my misery.

I am trying to send an html formatted file from my Solaris 9 machine using mailx. The file will be automaticaly generated and similar to the format below...


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1505" name=GENERATOR>
</HEAD>

<BODY>
<B>From:</B> Fred Bloggs [fred.flintstone@whatever.co.uk <BR>
<B>Sent:</B> 21 July 2005 22:10<BR>
<B>To:</B> fred.flintstone@whatever.co.uk<BR>
<B>Subject:</B> bold<BR> <DIV><FONT face=Arial size=2>
<BR>
<SPAN class=625193719-19072005>07 08 <STRONG>09</STRONG> 10 11 12 13 <STRONG>14<
/STRONG> 15</SPAN></FONT></DIV>

</BODY>
</HTML>

I am using the command

$ cat thefile.htm | mailx -r ${from} -s "${title}" ${to}

The mail arrives okay but the html content is not executed, simply listed as a text file.

Is there a solution?

Any help much appreciated.

Les.... [ponder]
 
I missed that in the FAQ! Must search harder next time.

Problem solved.....

Many thanks for you help.
Les....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top