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

When using the $use_sendmail how to then send email in html format

Status
Not open for further replies.

chuckID

Technical User
Oct 1, 2002
8
US
Hi,

If I want to use sendmail like below for example, how do I sent out the email so that its in html format not just plain text?
$use_sendmail = "on";
$SENDMAIL = "/usr/sbin/sendmail -t";

If a form is used to gather info like a name, email etc. and this info is stored in a database on the server and then another form is generated and emailed out to the email address provided in the first form, how can this form be sent out so that it is in html format and not just text? For example, I would like the below code to go out as html NOT plain text.

<!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;>

<html>
<head>
<title>Input Form</title>
</head>
<body>
<center>

<h3>Database: <font color=&quot;red&quot;></font></h3>
Wednesday, September 18, 2002 - 7:30 pm
<P>
<form action=&quot;submit_data.cgi&quot; method=&quot;POST&quot;>
</form>
</center>
</body>
</html>

Thank you,
Chuck Clark

p.s. Thanks to jim for helping me resolve my path problem!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top