Jump to content

PHP Mail Script


Havery Jay

Recommended Posts

Hello, I am new to php and have the following problem:

 

I have set up the following on a page so that it emails clients automatically:

 

$csubject = "My Email Subject";

$headers = "MIME-Version: 1.0\r\n";

$headers .= "Content-type: text/html; charset=utf-8\r\n";

$headers .= "Reply-To: My Email <myemail@myemail address.co.uk>\r\n";

$headers .= "Return-Path: My Email <myemail@myemail address.co.uk>\r\n";

$headers .= "From: My Email <myemail@myemail address.co.uk>\r\n";

 

mail($email, $csubject , $message , $headers, "-myemail@myemail address.co.uk");

 

This works every time as far as i am aware - apart from when i try to contact AOL customers this way.  If anyone has any sugestions how to get this through to AOL that would be fantastic!!

 

Many thanks

 

Havery Jay

Link to comment
https://forums.phpfreaks.com/topic/79242-php-mail-script/
Share on other sites

Thanks for the link revraz , does this mean i need to contact my web host (freeola) to see if they can fix this problem as it may be to do with dns settings.  As you can tell i am not that well up on php and dns so don't really know what to do next,  hope you can help

Link to comment
https://forums.phpfreaks.com/topic/79242-php-mail-script/#findComment-402106
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.