Jump to content

[SOLVED] Mail() function - will not send to .edu or other addresses, only web based email


Recommended Posts

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

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.

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).

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.