Skip to main content
Legend
February 16, 2017
Question

OT: php mail function (mail not getting through to one address)

  • February 16, 2017
  • 3 replies
  • 844 views

Anyone had an issue like this before.

I use the php mail function to send information gathered from a form on the clients website to my clients email address but they say they are not getting the emails. If I add my own email address and a couple of test email address to the 'recipients' - comma seperated - the mail gets through to the other email addresses just fine so I know the host mail server is dishing out the information.

If I sent email to the client via an email client, not a website form, the mail gets through to them just fine. I've asked them to check their spam box but they say there is nothing in that. I've asked if they have any internal server set up which then distributes the mail from the host mail server but have not had a reply about that as yet.

Its puzzling me. Any more ideas?

My next move is to set up a test email account using the clients details and see if anything comes back to that.

Os

    This topic has been closed for replies.

    3 replies

    Rob Hecker2
    Legend
    February 16, 2017
    1. Whatever email client the client uses (hotmail, yahoo, gmail, etc.), get an account with that system and test the email process.
    2. Don't use PHP Mail(). Use Swiftmailer with a properly configured SMTP server.
    BenPleysier
    Community Expert
    Community Expert
    February 16, 2017

    Even redirecting emails to gmail accounts do not get through.

    I have found, like Rob, that using an SMTP server is the better way to go. For this I use https://www.dmxzone.com/go/32481/dmxzone-mailer.

    But you can use Powerful component based mailing library for PHP – Swift Mailer  or  http://phpmailer.worxware.com/?pg=examplebsmtp

    Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
    Nancy OShea
    Community Expert
    Community Expert
    February 16, 2017

    A while back I had a problem with my personal email address being used in the senders field of a ton of Spam mail -- all of which was bouncing back to me.  It got so bad I had to kill my email account to stop the flood of 14,000 email returns per day.

    The side effect of that mess was all emails coming from my server were blocked by Gmail, hotmail and many others because they assumed my server was a spam relay.   The block lasted for quite a while but it has since been lifted for the most part.

    If your client uses Gmail, etc... I suggest setting up a new email account for them on the sending server and see if that gets through.

    Nancy

    Nancy O'Shea— Product User & Community Expert
    pziecina
    Legend
    February 16, 2017

    Has the client set a controlled mail distribution service?

    I don't get any emails from individuals in the companies i work with, unless i have already aproved the sender to send me individual emails. This is to stop me recieving email from people without clearance to do so.

    osgood_Author
    Legend
    February 16, 2017

    pziecina  wrote

    Has the client set a controlled mail distribution service?

    Whats that? We are talking non tech clients here who barely know what day of the week it is so unless anyone has come in and set something up for them I doubt it. But it does all point to something in the way (blocking) from a web source, that's why I've posed the question about an internal server, which could be killing the mail stone dead but allowing other sources through.

    pziecina
    Legend
    February 16, 2017

    A controlled mail distribution service, is a mail server setting that says if a sender is allowed to contact someone by email or not. If not the mail simply stays on the server until someone checks it/them, and allows/disallows.

    This works for both incomming and outgoing mails.