Forum Moderators: coopster
The hosting company is looking into the issue but they haven't come up with anything yet. Are there any settings in apache or php that need to be enabled in order to properly send out html emails? Since the code hasn't changed I have to assume that it's a server issue.
Here is a sample of an email script:
$subject = "Password Reset";
$message = "<font face='Arial' size='2'><b>Your password has been reset.</b> To login you must use the screen name and temporary password supplied below. Once you login you will be prompted to create a new password that you can remember.<br><br>
<b>Screen Name:</b> $username <br>
<b>New Password:</b> $random_password
<br><br>Thanks!<br>
The Webmaster
<br><br><br>***This is an automated response, please do not reply!</font>";
$headers = "From: support@example.com\nX-Mailer: $from\r\nMIME-Version: 1.0\r\nContent-type: text/html; charset=iso-8859-1\r\n";
if (mail($email,$subject,$message,$headers)){
return "success";
}else{
return "failed";
}
[edited by: dreamcatcher at 6:58 pm (utc) on Mar. 7, 2008]
[edit reason] Use example.com, thanks. [/edit]