urs
December 11th, 2003, 03:16 AM
<?php
if (trim($comments) != "" )
{
$comments1="<html><body><p>Support request from : ". $sendername . " Email : <a href='mailto:" . $email . "?subject=Your support request at cynapse.co.in'>" . $email . "</a></p>";
$comments1.="<p>Subject: " . $subject . "</p>";
$comments1.="<p>Comments: " . $comments. "</p></body></html>";
$ret=mail("support@cynapse.co.in","Site Support Request",$comments1,"From:user@cynapse.co.in") or die("Could not send support request. Please try again later.");
}
else
{
$failure = TRUE;
}
?>
now this is how i am sending an email to the site admin.
but when he opens his mail in outlook he just gets the string and not an HTML page.
how to send html codes so that he can view it like html pages
i hope i have made my problem clear
plzz help me
if (trim($comments) != "" )
{
$comments1="<html><body><p>Support request from : ". $sendername . " Email : <a href='mailto:" . $email . "?subject=Your support request at cynapse.co.in'>" . $email . "</a></p>";
$comments1.="<p>Subject: " . $subject . "</p>";
$comments1.="<p>Comments: " . $comments. "</p></body></html>";
$ret=mail("support@cynapse.co.in","Site Support Request",$comments1,"From:user@cynapse.co.in") or die("Could not send support request. Please try again later.");
}
else
{
$failure = TRUE;
}
?>
now this is how i am sending an email to the site admin.
but when he opens his mail in outlook he just gets the string and not an HTML page.
how to send html codes so that he can view it like html pages
i hope i have made my problem clear
plzz help me