Skip to main content
Known Participant
July 10, 2020
Question

Configuring the Submit button to go to an email address

  • July 10, 2020
  • 1 reply
  • 704 views

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 has been closed for replies.

    1 reply

    Nancy OShea
    Community Expert
    Community Expert
    July 10, 2020

    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.

     

    Nancy O'Shea— Product User & Community Expert
    DWuser973Author
    Known Participant
    July 13, 2020

    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

    Nancy OShea
    Community Expert
    Community Expert
    July 13, 2020

    "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

     

    Nancy O'Shea— Product User & Community Expert