otuatail Posted June 25, 2015 Share Posted June 25, 2015 Hi. The code I have been using for 10 years has stopped again. I believe this is a configuration problem with my web host. The code was working up to yesterday and other parts of the website have similar code that has stopped. Is there any way I can use some sort of ini set to overcome this. I was hoping to demo a website today and now this. I even have a test mail() with default fixed values that should also work. Here is the code complete with what was echo(d) back. Any help would be really appreciated here. I am desperate to get this email working again. *** /* $emailList = ""; $qCustomers = GetCustomers($_SESSION['MySQLEmail']); while ($row = mysql_fetch_array($qCustomers)) { $emailList .= $row['Email'] . ","; } $emailList = trim($emailList, ","); echo $_SESSION['MySQLEmail'] . "<br>"; echo "$emailList<br><br>"; */ $emailList = "[email protected],[email protected],[email protected]"; $site ="mysight"; $webemail = $site . "@desmond-otoole.co.uk"; $headers = "From: $site <$webemail>\r\n"; $success = mail($emailList,$subject, $msg, $headers, '[email protected]'); // must comply with » RFC 2822. echo "Success1: " . $success . "<br>List: " . $emailList . "<br>Subject: " . $subject . "<br>Site: " . $site . "<br>webemail: " . $webemail . "<br>headers: " . $headers . "<br><br>"; /* result of above echo Success1: 1 List: [email protected],[email protected],[email protected] Subject: Happy christmas from everyone here at Millers Yard Site: mysight webemail: [email protected] headers: From: mysight */ // test using fixed text values This also failes *** $success = mail("[email protected],[email protected],[email protected]","My Subject", "My Message", "From: $site <[email protected]>\r\n", '[email protected]'); // must comply with » RFC 2822. *** Link to comment https://forums.phpfreaks.com/topic/297018-going-mail-problems/ Share on other sites More sharing options...
iarp Posted June 25, 2015 Share Posted June 25, 2015 Any error messages displayed? What do the server logs say? Unless this is a development server, only change this temporarily. Open php.ini and look for display_errors = and make sure it = On and restart the web service. If you're using apache you'll also want to have a look at /var/logs/apache2/error.log it maybe logging to another location all depends on the web server itself. Link to comment https://forums.phpfreaks.com/topic/297018-going-mail-problems/#findComment-1514902 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.