Skip to main content
Known Participant
Jul 10, 2020 5:00 PM UTC
Question

Configuring the Submit button to go to an email address

Hi All,

I desinged a form in DW and just need to tell it what email address to go to when a visitor clicks on the Submit button.

how Do I tell the form to submit to info@mycompany.com?

Thanks

 

    This topic is closed to new replies. Start a new post to keep the conversation going.

    12 replies

    Nancy OShea
    Community Expert
    Community Expert
    Jul 10, 2020 5:40 PM UTC

    DO NOT publish your e-mail address online.  MAILTO: links are not safe.

    1. It promotes spam.

    2. It's unreliable. Only users with an e-mail client like Outlook or Apple Mail can send mail.

    3. It puts your site, your server and your e-mail address at risk for exploitation by spambots and robot harvesters.

    4. If your e-mail address gets out in the wild, your site could be blacklisted for spamming even if you never spammed anyone.

     

    Use a secure contact form & processing script that hides your e-mail address and stops robots in their tracks. 

     

    Contact your host and ask them if they have form-processing scripts on the server.  If not find out which server-side language you can use with your hosting plan.  Or use a 3rd party service like JotForm,  Wufoo or Mailchimp.

     

    Translate
    Nancy O'Shea— Product User & Community Expert
    DWuser973Author
    Known Participant
    Jul 13, 2020 2:50 PM UTC

    Thank you for the great info

     

    is having a processing script the only way to send the form from the website to a receipient?

     

    I already designed the form in DW and was hoping there's a field on the form where I can fill in an email address where the form needs to go

     

    Thanks again

    Translate
    Nancy OShea
    Community Expert
    Community Expert
    Jul 13, 2020 5:35 PM UTC

    "I already designed the form in DW and was hoping there's a field on the form where I can fill in an email address.. "

     

    As I said before, Mailto: is not safe or reliable.  Contact your host.  A secure script is necessary because contact forms are a lot more complex than people realize.  What goes on behind the scenes matters a lot! 

     

    If your hosting plan supports PHP, use this sending library available on GitHub.

    https://github.com/PHPMailer/PHPMailer

     

    See simple contact form example. 

    https://github.com/PHPMailer/PHPMailer/blob/master/examples/simple_contact_form.phps

     

    Translate
    Nancy O'Shea— Product User & Community Expert