Ok I'm being driven crazy here. I'm using the mail() function to send html email and it just ain't workin.
Something is wrong with the way it is passing the header info.
here is the code I'm trying to work.
$headers = "From: $mailFrom <$mailFrom>\r\n";
$headers .= "Content-type: text/html\r\n ";
mail($mailTo, $mailSubject,$mailBody,$headers);
When I try and use this code, the mail does not send, but it doesn't seem to error out in any way either.
Now, if I just use the first line of the $headers variable, it will send the email, but the body will not send as html.
If I use only the second line of the $headers variable, the mail will send, and the body of the message will be in html format, BUT the from portion of the mail shows up as "Nobody@serverxx.totalChoiceHosting.com
I've tried some other routes from other threads in this form. namely
http://www.totalchoicehosting.com/forums/i...2648&hl=nobody@
http://www.totalchoicehosting.com/forums/i...l=nobody@server
http://www.totalchoicehosting.com/forums/i...3090&hl=nobody@
can anyone shed some light on this?
Thanks!