movieprodw
asked on
php mail spam
Hello,
Does anything here stand out that would make this email rejected by spam?
Does anything here stand out that would make this email rejected by spam?
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'From: a Online Inquiry <noReply@a.com>' . "\r\n";
$headers .= 'BCC: a <info@a.com>' . "\r\n";
$headers .= 'Reply-to: '.$name.' <'.$email.'>' . "\r\n";
$subject='a Online Inquiry';
$body = "<strong>".$name." is contacting us about your ".$row['year']." ".$row['make']." ".$row['model']." for sale.</strong>
<br /><hr><br />";
if($phone){
$body .= "<strong>Phone:</strong> ".$phone."<br />";
}
$body .= "<strong>Email:</strong> ".$email."<br />
<strong>Message:</strong> ".$message."<br /><br />
<strong>Vehicle:</strong> ".$row['year']." ".$row['make']." ".$row['model']."<br />
<strong>Link To Ad:</strong> ".$_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]."<br />";
$body = preg_replace("#(?<!\r)\n#si", "\r\n", $body);
$headers = preg_replace('#(?<!\r)\n#si', "\r\n", $headers);
mail($to, $subject, $body, $headers);
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER