I have a php mail script I have been using for a few years to send html messages but maybe it needs updated?
I can send without problems on several of my pc's with different browsers but the client has issues on his pc. When he submits the form on his laptop with windows 7, he sees the confirmation page but not emails are delivered. I set myself as a cc to confirm.
When the client checks in FF in vista it works, in IE in vista it does not mail?
Here is what I am using, does this look ok or any suggestions?
Code:
// subject
$subject = 'Online Shuttle Reservation - Airport';
$date = date("F d, Y");
// message
$message = '
<html> html message here </html>
';
// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
// Additional headers
$headers .= 'To: Non Stop Shuttle Service <clients@email.com>' . "\r\n";
$headers .= "From: Non Stop Shuttle Service <clients@email.com>" . "\r\n";
$headers .= 'Bcc: test@email.com' . "\r\n";
$headers .= 'Bcc: test@email.com' . "\r\n";
// sends to person who filled out the form:
$headers .= "Bcc: $name <$email>\r\n";
//$headers .= 'Bcc: birthdaycheck@example.com' . "\r\n";
// Mail it
mail($to, $subject, $message, $headers,'-f'.$email);
Last edited by virtualgeorge; 10-10-2010 at 02:08 PM..
|