We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17851
    • 213 Posts
    Can anyone give me some guidance on what I need to do to get eForm to send mail? I see that there are a few options: mail, sendmail, smtp. When I submit the form, I’m not getting any emails, and I’m not sure where the problem is occurring.
    Any suggestions? What sort of things do I need to check as prerequisites? Which method is best? How can I tell eForm which method to use? How do I set the server/port? Is there a special DNS requirement, eg, MX record? Any suggestions on how to debug?

    As you can tell, I’m kind of at a loss with the email.
      Mark Macatee
      President
      Power 10 Solutions
      http://www.power10solutions.com
      • 25663 MODX Staff
      • 12,272 Posts
      Is the form redirecting to your "thank you" page or displaying a success message?
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 17851
        • 213 Posts
        I get the original form back again, with no message. Here’s the snippet call:

        [!eForm? &formid=`myform` &to=`<emailaddr>` &subject=`Website Feedback Test` &tpl=`efSimple` &report=`eFeedbackReport` &vericode=`1`!]


        I just used the templates from the examples.
          Mark Macatee
          President
          Power 10 Solutions
          http://www.power10solutions.com
          • 25663 MODX Staff
          • 12,272 Posts
          Post up your form template if you could. Is the page itself cached?
            Ryan Thrash, MODX Co-Founder
            Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
            • 17851
            • 213 Posts
            Page is not cached. See attached chunks.

              Mark Macatee
              President
              Power 10 Solutions
              http://www.power10solutions.com
              • 25663 MODX Staff
              • 12,272 Posts
              Here’s the problem, you need to modify the value in your form:
                  <input type="hidden" name="formid" value="feedbackForm" />


              Match the &formid=`myform` parameter in your call. "myform" should become "feedbackForm", I think. I’m not sure if you’ll have any issues with an uncached call on an uncached page, but that might be problematic ... just FYI ... but I doubt it.
                Ryan Thrash, MODX Co-Founder
                Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                • 17851
                • 213 Posts
                doh! Now I’m getting somewhere. Thanks.

                The error I get now is: "Main mail: Mailer was unable to send mailThe following From address failed: <emailaddr>"
                  Mark Macatee
                  President
                  Power 10 Solutions
                  http://www.power10solutions.com
                  • 25663 MODX Staff
                  • 12,272 Posts
                  Put in a real email address there ... or more fun bring a 6 pack over and we’ll sit down and knock it out tonight. wink
                    Ryan Thrash, MODX Co-Founder
                    Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                    • 17851
                    • 213 Posts
                    Sorry, I did use a real email...I just omitted it for this post. I’ll definitely take you up on that...just gimme a date/time. wink
                      Mark Macatee
                      President
                      Power 10 Solutions
                      http://www.power10solutions.com