We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 38783
    • 571 Posts
    Hello Bob.

    I hope all is well with you.

    I think it may be different if the email that is being sent actually specifies that the reply to and the from fields should be different from one another?

    This error...

    SMTP Error: data not accepted.SMTP server error: DATA END command failed


    ...does seem to relate in some cases to specifying a different 'reply to'.



      If I help you out on these forums I would be very grateful if you would consider rating me on Trustpilot: https://uk.trustpilot.com/review/andytough.com

      email: [email protected] | website: https://andytough.com
      • 3749
      • 24,544 Posts
      Thanks Andy,

      I'm not sure I'm understanding you. Every message I get through my contact form has the user who filled it out as the reply-to address, but the emailsender System Setting for the from address.

      For the thousands of messages I've sent with Notify, the two are also different (reply-to is empty).

      I guess it would be possible to configure the server to require those to be the same, but I've never seen it, and such a configuration would make standard contact forms impossible. I did find this suggestion, which seems promising:

      Some servers require that the From email address is the same as the email address used to authenticate. Check your from name and match it to the username you use to login to your SMTP server.

      It could also conceivably be a character set issue or a problem with the formatting of the mail body.
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
      • W. Shawn Wilkerson Reply #13, 6 years, 1 month ago
        If memory serves, the order of the hooks is important as they are processed as presented. Somewhere, I seem to recall that each hook must return true or the process will simply stop.

        See: https://docs.modx.com/extras/revo/formit/formit.hooks
          Get your copy of MODX Revolution Building the Web Your Way http://www.sanitypress.com/books/modx-revolution-building-the-web-your-way.html

          Check out my MODX || xPDO resources here: http://www.shawnwilkerson.com
          • 38783
          • 571 Posts
          I was going to stop commenting on this as I think I may have stopped making any sense!

          However I noticed on this page https://docs.modx.com/extras/revo/formit/formit.hooks/formit.hooks.formitautoresponder that fiarReplyTo is a required field.

          Having said that I have just removed that line form my own form and it didn't break the form.

            If I help you out on these forums I would be very grateful if you would consider rating me on Trustpilot: https://uk.trustpilot.com/review/andytough.com

            email: [email protected] | website: https://andytough.com
            • 49659
            • 86 Posts
            Thanks to all who have weighed in on this issue! I found a fix, although I'm still not sure what was wrong before...

            To recap, I was using an SMTP server associated with our web host (InMotion) to handle the email functions associated with a Contact Form. Apparently, even though the autoresponder would sucessfully send a response, it would also prevent a redirect from occurring.

            This failure appears to be related to a failure during autoresponse, which is shown with this error in the MODX log:

            [FormIt] An error occurred while trying to send the auto-responder 
            email: SMTP Error: data not accepted.SMTP server error: DATA END command failed


            I tried switching to a different SMTP server, using the 'smtp-relay.gmail.com' SMTP server associated with a Google account. I am authenticating with a 'Google app password' rather than the two-factor authentication normally required for that account, and everything is working swimmingly!

            Apparently, there was some issue with the InMotion SMTP server that is not there with the Google SMTP server. So this is solved. Sorta. ;-) Thanks again!

            Karl
              • 38783
              • 571 Posts
              Glad you got it sorted.
                If I help you out on these forums I would be very grateful if you would consider rating me on Trustpilot: https://uk.trustpilot.com/review/andytough.com

                email: [email protected] | website: https://andytough.com