Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 10 of 10
  1. #1
    TrainReq
    Guest

    PHP mail issue - Mail not reciving on all providers

    I am using this line of code to send mail
    Code:
    <?
    $recpt = $_POST['email'];
    ?>
    <?
    $to = "$recpt";
    $subject = "SUBJECT";
    $body = 'BODY';
    $from = "From: admin@site.com\r\n" .
        "X-Mailer: php";
    mail($to, $subject, $body, $from);
    ?>
    To send mail.... in Gmail.. it recives just fine, however in Yahoo/AOL .. it doesnt recive at all , and in MSN it goes in "junk" folder ... I have tested it on Gmail, Yahoo, MSN, and AOL ... everything but Yahoo and AOL recive ,but as I said before.. in MSN it goes in junk....

    What should I do to get this to recive on atleat 90% of providers.

  • #2
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts
    This issue was just recently discussed in depth in the following threads:

    PHP emails not getting to hotmail addresses

    Headers for the mail() function

    AOL Email again

  • #3
    TrainReq
    Guest
    hm.. none of those where really helpfull... any other suggestions?

  • #4
    Senior Coder CFMaBiSmAd's Avatar
    Join Date
    Oct 2006
    Location
    Denver, Colorado USA
    Posts
    3,077
    Thanks
    2
    Thanked 320 Times in 312 Posts
    Have you checked your domain at www.dnsreport.com for problems?
    If you are learning PHP, developing PHP code, or debugging PHP code, do yourself a favor and check your web server log for errors and/or turn on full PHP error reporting in php.ini or in a .htaccess file to get PHP to help you.

  • #5
    TrainReq
    Guest
    yes.. seems to be no problem.. but if there was one.. it wouldnt send to any providers... not just some.

  • #6
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,502
    Thanks
    8
    Thanked 1,089 Times in 1,080 Posts
    Try a subject line that looks normal, like "this is a test" ... not "SUBJECT".
    Perhaps filters don't like the subject.

  • #7
    Senior Coder CFMaBiSmAd's Avatar
    Join Date
    Oct 2006
    Location
    Denver, Colorado USA
    Posts
    3,077
    Thanks
    2
    Thanked 320 Times in 312 Posts
    it wouldnt send to any providers... not just some
    Well, no. Don't be too absolute.

    Each mail system checks different things and uses different weights toward ranking an email as spam or ranking a sending mail server to be temporarily or permanently banned...

    If your server and mail server have the proper DNS records, this is just the first step in getting a receiving mail server to accept mail from your server.

    The next level of things that can cause email problems are things like the sending mail server is not authorized to send mail for the domain in the from address or the IP address of the sending mail server appears in spam databases...

    The next level is the actual content. Is the from email address, subject, or content spam-like?

    If everything is normal, you might need to go through the white-listing procedure with each of the major ISP's in order to get your email to go through.

    Also, if you contact the ISP's, either through a form or through direct contact, they will tell you why they are either rejecting email from you or ranking it as junk/spam.
    Last edited by CFMaBiSmAd; 02-22-2007 at 07:50 PM. Reason: fixed some missing words
    If you are learning PHP, developing PHP code, or debugging PHP code, do yourself a favor and check your web server log for errors and/or turn on full PHP error reporting in php.ini or in a .htaccess file to get PHP to help you.

  • #8
    Regular Coder meth's Avatar
    Join Date
    Jan 2003
    Posts
    262
    Thanks
    0
    Thanked 9 Times in 9 Posts
    You ever come across website registration forms that don't accept free webmail addresses such as gmail, hotmail, yahoo, and aol?

    This is in the top 5 reasons not to do so. You can have everything 100% correct and some users will still not receive the email. Whitelists, blacklists, spam filters, spam databases and failures negotiating successful connections between mailservers all contribute to making free email a big, fat headache.
    I do Web Design, Brisbane based.
    More time spent in PHP/MySQL Web Development.
    And Search Engine Optimisation takes up the rest of it.

  • #9
    TrainReq
    Guest
    Well... the only one that considers it spam is MSN , all other email services dont recive it (except gmail) ... I have tried:

    Hey.. whatsup

    as the subject and

    Hi.. How are you doing..

    as the body just for a test


    still the same exact problem.

  • #10
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts
    I guess I have to ask-- ARE you mailing out spam? If so, then you should have no expectation of getting through the spam filters.

    If you haven't gone through the trouble of trying to get white-listed, researching email rules for those providers that are rejecting your email, and the other stuff CFMaBiSmAd mentioned, then that's what you need to do. Beyond that, I'm not sure what you expect from this forum... (?)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •