nogginj Posted April 27, 2009 Share Posted April 27, 2009 Howdy I have a mail script that send out basic messages, nothing fancy, no attachments, just html messages. The script works fine to services like gmail, but the emails are not making it at all to addresses like .edu or other non-free email providers. Is there a spam filter thing I am missing? I assumed that the gmail spam was a good test, and I can get through that no problem, but I cannot get an email to my .edu address. Headers are as follows (EMAIL_FROM_ADDR is just a constant): $headers = 'From: '.EMAIL_FROM_ADDR."\r\n" . "MIME-Version: 1.0\n" . "Content-type: text/html; charset=iso-8859-1". "\r\n" . 'X-Mailer: PHP/' . phpversion(); Thank yall. -j Quote Link to comment https://forums.phpfreaks.com/topic/155862-solved-mail-function-will-not-send-to-edu-or-other-addresses-only-web-based-email/ Share on other sites More sharing options...
premiso Posted April 27, 2009 Share Posted April 27, 2009 You can try adding more headers to the email and see if that fixes it. But chances are the server you are sending the mail from (the IP) does not have a valid MX record associated with it. Without a valid MX record, Yahoo, Hotmail and AOL plus others will automatically filter the email as SPAM. GMail does not yet do this. You can contact your host about the issue, and they may be able to provide some assistance on how to resolve it for their host (if it is indeed not the above issue). Even if it is, they may be able to change a setting to fix it. Quote Link to comment https://forums.phpfreaks.com/topic/155862-solved-mail-function-will-not-send-to-edu-or-other-addresses-only-web-based-email/#findComment-820366 Share on other sites More sharing options...
nogginj Posted April 27, 2009 Author Share Posted April 27, 2009 Thanks. I have contacted our providers to see what they can help with. I have also tried other mail options like phpmailer to no avail, so I think it is a server issue. Quote Link to comment https://forums.phpfreaks.com/topic/155862-solved-mail-function-will-not-send-to-edu-or-other-addresses-only-web-based-email/#findComment-820451 Share on other sites More sharing options...
premiso Posted April 27, 2009 Share Posted April 27, 2009 Thanks. I have contacted our providers to see what they can help with. I have also tried other mail options like phpmailer to no avail, so I think it is a server issue. If you have gmail hosted, and do not plan to send a ton (over 400 emails a day) you can use phpGMailer. If you plan on sending less than 100 emails you can just sign up for a regular GMail account as they allow upto 100 emails a day, you could also signup for multiple accounts just for this and then alternate on emails so if hosted you could be able to send 1,000 a day or non-hosted send 200 a day etc. Whether that is kosher with GMail I have no clue (the hosted I know is fine cause I do it with the hosted). Quote Link to comment https://forums.phpfreaks.com/topic/155862-solved-mail-function-will-not-send-to-edu-or-other-addresses-only-web-based-email/#findComment-820456 Share on other sites More sharing options...
nogginj Posted April 28, 2009 Author Share Posted April 28, 2009 That is a great idea aboutthe gmailer. I solved the problem...it was a line in php.ini that needed to set my reply-to or from address. sendmail_path=/usr/sbin/sendmail -t -i -faddress@domain.com that line had to be set with the -f+address Thanks to those that hepled. Quote Link to comment https://forums.phpfreaks.com/topic/155862-solved-mail-function-will-not-send-to-edu-or-other-addresses-only-web-based-email/#findComment-821274 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.