We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26925
    • 44 Posts
    I made a form using eform snippet.......now I want to send mail as well as save form data in modx database. To send mail we use "to" parameter whose value is some email address in eform snippet call but I want this email address to be captured from the url string parameter when this form is requested

    eg. www.mysite.com/form&[email protected]


    The crux is that I want to send emails dynamically by capturing the "mailTo" request parameter from the url.
    Please tell about how to save this "mailTo" parameter in the modx database..
    THANKS....
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Why do you need a GET for that? If you’re sure you need one (and don’t forget that the first item in the query string needs to use a ? and not a & if you have friendly URLs on) you can use one of eForm’s events to set the address.

      http://wiki.modxcms.com/index.php/EForm#Events
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org