HormonX
10-26-2002, 01:34 AM
Here is my question. Am sending an email to a user when he completed and submited the form below is the script that am using. It's working just great. My question is, when i receive the message it's just palin text, i can't include any HTML code in it. All i want to do is to send e-mail address and an URL as a link.
Can anyone help ? I think it has something to do with MIME type.. but am not sure where to change it.
$announce_subject = "Thank you for your interest";
$announce_from_email = "email@domain.com";
$announce_from_name = "domain.com";
$announce_to_email = $ogl_email;
$body = "$digicode\n$ogl_imie";
$MP = "/usr/sbin/sendmail -t";
$spec_envelope = 1;
// Access Sendmail
// Conditionally match envelope address
if($spec_envelope)
{
$MP .= " -f $announce_from_email";
}
$fd = popen($MP,"w");
fputs($fd, "To: $announce_to_email\n");
fputs($fd, "From: $announce_from_name <$announce_from_email>\n");
fputs($fd, "Subject: $announce_subject\n");
fputs($fd, "X-Mailer: PHP4\n");
fputs($fd, $body);
pclose($fd);
Thank you
HormonX
Can anyone help ? I think it has something to do with MIME type.. but am not sure where to change it.
$announce_subject = "Thank you for your interest";
$announce_from_email = "email@domain.com";
$announce_from_name = "domain.com";
$announce_to_email = $ogl_email;
$body = "$digicode\n$ogl_imie";
$MP = "/usr/sbin/sendmail -t";
$spec_envelope = 1;
// Access Sendmail
// Conditionally match envelope address
if($spec_envelope)
{
$MP .= " -f $announce_from_email";
}
$fd = popen($MP,"w");
fputs($fd, "To: $announce_to_email\n");
fputs($fd, "From: $announce_from_name <$announce_from_email>\n");
fputs($fd, "Subject: $announce_subject\n");
fputs($fd, "X-Mailer: PHP4\n");
fputs($fd, $body);
pclose($fd);
Thank you
HormonX