I have a php order form with captcha. It was working for many months. When the client orders, a copy of it goes to him and one to me. Since a few days if a client order with a gmail address no mail are sent out, not even in the spam folder. It looks like gmail spam my order form.

Is someone else experiencing this ?
Can I add some coding in order to avoid it?

Thank you

    paldo;11058539 wrote:

    Since a few days if a client order with a gmail address no mail are sent out...

    Is that what you mean, or do you mean "no emails are received by gmail users"? ... because although the results are the same, those are different issues.

      if a gmail address is used for an order the script will not be executed, which means that no email are received

        Ok then, fix the script to accept gmail addresses. And find out who changed it and send them a carefully-worded email. 😉

          Are you only using the gmail address as the "To:" address, or are you also using it as the "From:" address? (In the latter case, you mail server may not allow anything for "From:" other than a valid email address on that server.)

            Yes , I would like to fix it, but don't know where I can find a tutorial about this problem

              My "From:" is order@mydomain, my "To:" is info@mydomain.

              I tried to order with some of my gmail addresses, every time I got this message:

              host
              gmail-smtp-in.l.google.com[2607:f8b0:400d:c0e::1b] said: 550-5.7.1
              [2a01:4f8:150:14a2::2 7] Our system has detected that this 550-5.7.1
              message is likely unsolicited mail. To reduce the amount of spam sent
              550-5.7.1 to Gmail, this message has been blocked. Please visit 550-5.7.1
              https://support.google.com/mail/?p=UnsolicitedMessageError 550 5.7.1 for
              more information. r81si22466875qka.245 - gsmtp (in reply to end of DATA
              command)

              If the order is made with an yahoo address, the script is executed and I get the order.

                Well, there you go. Google thinks your server domain is a source of spam, so is blocking it. Among your choices: use another mail service/server that is not blocked (and likely will cost you money if you use a account for some service that guarantees to avoid spam blockage); or else if you trap that error handling, alert the user that email cannot be sent, and make sure they still at least see some sort of acknowledgement page with the same info, or...???

                  NogDog;11058583 wrote:

                  ... or else if you trap that error handling, alert the user that email cannot be sent, ...

                  That is what I'm doing now, on the error handling mail I got all informations of the client and his order, can contact him manually.

                  I thought there is a piece of coding that can help me out or some adjustment to my script .

                  Thank you

                    Well, by following the link given in the error message, and following a few more links from there gets to https://support.google.com/mail/answer/81126 which includes some guidelines that you may or may not already be following: if you're not then you can try doing so (starting with checking the format of your emails).

                    Obviously there won't be one simple quick code fix that will prevent your emails from being misidentified as spam. Think about it: if such a thing existed then spammers could use it as well.

                      paldo;11058551 wrote:

                      if a gmail address is used for an order the script will not be executed

                      Aha! So this is proved falsy! It has nothing to do with your script, and everything to do with SMTP, your MTA, Google's MTA, etc. etc.

                      Would SPF or DKIM help?

                        Thank you very much , I was able to fix the problem. When "From:" and "Reply-To" have the same mail address , my order form is not spammed by gmail.

                          Write a Reply...