Skip to main content
cleswatts
Participant
April 30, 2017
Answered

Forms Processing

  • April 30, 2017
  • 3 replies
  • 468 views

How can I send user input directly to  my email. The following action is reported to do that, but it prompts the end user! I don't understand the @email.com and tried

others like my host bluehost.com. No success. Please help.

<form action="mailto:<emailiD>@comcast.net@email.com" enctype="multipart/form-data" method="post" name="f" onsubmit="return verify(this)">

This topic has been closed for replies.
Correct answer Rob Hecker2

Replace leswatts@comcast.net@email.com with your email address. You probably just need to remove @email.com

But you should know that only those who have an email client installed on their computer (like MS Outlook) will be able to respond, and many people no longer have that.

The normal practice these days is to use the email server on the server via PHP.

3 replies

cleswatts
cleswattsAuthor
Participant
May 1, 2017

I wasn't clear. I am only interested in the form action below,

     <form action="mailto:[email removed by moderator]@email.com"

but I'm ok now. Thank you all for you speedy help.

Charles

Preran
Legend
May 1, 2017

Glad to hear that your issue was resolved. Can you mark any of the answers that came close to helping you as correct? If you have a different solution, you can post it here, and mark it as correct. This will help other users stuck in a similar situation.

To help you avoid spam, I have edited the email address in the code.

Thanks,

Preran

Nancy OShea
Community Expert
Community Expert
April 30, 2017

Ask your web host which scripts you can use to process contact forms.  They may have one you can use.  If not, you'll need to create or find one in the server-side language supported by  your hosting plan.

Mailto links are not a reliable way for people to reach you.  Plus it leaves your email address vulnerable to robots and spammers who will exploit your email account and stuff your inbox with junk mail. 

Below is a 3-part tutorial on how to create a responsive contact form with a secure PHP script that hides your email from  harvesters, sanitizes form data, checks for valid form field entries, thwarts spam, gives feedback to users and sends results to your email address.

Alt-Web Design & Publishing: Responsive Contact Form with Bootstrap 3.2 and PHP (Part 1)

Nancy

Nancy O'Shea— Product User & Community Expert
Rob Hecker2
Rob Hecker2Correct answer
Legend
April 30, 2017

Replace leswatts@comcast.net@email.com with your email address. You probably just need to remove @email.com

But you should know that only those who have an email client installed on their computer (like MS Outlook) will be able to respond, and many people no longer have that.

The normal practice these days is to use the email server on the server via PHP.