When using the mail() command, is it possible to format colours of text, alignment or underlines etc?
If so how, if not is there another function available that will allow formatting?
Thanks.
When using the mail() command, is it possible to format colours of text, alignment or underlines etc?
If so how, if not is there another function available that will allow formatting?
Thanks.
It is possible. However, you must send the mail as HTML. To do this you must also send the MIME type as part of your message.
good luck
http://www.bringitlive.com
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/plain; charset=ISO-8859-1\r\n";
$headers .= "From: $UserFullName <$sentby>\r\n";
$headers .= "Organization: NAME OF THE COMPANY\r\n";
if ($sendmeCC=='1'){$headers.="BCC: $sentby\r\n";}
$msubject=stripslashes(mb_encode_mimeheader($msubject, "ISO-8859-1", "Q"));
@mail("$sendto", $msubject , stripslashes($sendmsg), $headers, "-f$sentby");
to send it out as HMTL (colors etc.) you have to change the Content-type to "text/html"
$sendmsg should be HTML...
I do encode the subject 'cause we've got "ÜÖÄß" in germany... some mailclients and providers can not handle them...