View Full Version : Making an email submit button
Mia
Feb 24th 2005, 9:28 am
Hello, I had a customer request that I place a "Button" so that visitors to their site can click on it to email them.
I just placed a simple form button on the following page: http://www.clearwatersdayspamd.com
What I want to do though is code the form such that when they click on it it inserts the "Subject" blah, blah, whatever, in the subject line of a new email. I would also like to ommit the "Submit=Click+Here+to+email+us" it places in the body of the message.
Any ideas if this can be done? If you go to http://www.clearwatersdayspamd.com and click the "click here to email us" button you can see what I mean. Thank you!
J.D.
Feb 24th 2005, 9:38 am
You should be able to form the email by using this syntax (you can add other fields, like cc, as well):
mailto:emailaddress?subject=my%20subject&body=my%20body
For example:
<form method="GET" action="mailto:email-address">
<input type="hidden" name="subject" value="test">
<input type="hidden" name="body" value="test">
<input type="submit" value="Send Email">
</form>or as a link:
<a href="mailto:emailaddress?subject=test&body=test">email</a>You can always disguise the link as a button.
J.D.
exam
Feb 24th 2005, 10:06 am
http://www.clearwatersdayspamd.com Oh that's Clear Waters Day Spa MD -- I just had to visit the site, I thought it SPAM d :)
BTW, clearwatersdayspa.com is available, you might want to get it as well- just a thought & the url would look a little cleaner.
Mia
Feb 24th 2005, 10:14 am
Thanx a bunch JD.
Exam, I will run the other domain by the client. I did in the past, but they wanted the MD on it.. I said it looks like "spam", but that is what they wanted.
Thanx again!
Mia
Feb 24th 2005, 10:27 am
You should be able to form the email by using this syntax (you can add other fields, like cc, as well):
mailto:emailaddress?subject=my%20subject&body=my%20body
For example:
<form method="GET" action="mailto:email-address">
<input type="hidden" name="subject" value="test">
<input type="hidden" name="body" value="test">
<input type="submit" value="Send Email">
</form>or as a link:
<a href="mailto:emailaddress?subject=test&body=test">email</a>You can always disguise the link as a button.
J.D.
JD, thanx again! I went with option two. For some reason using the form code still returned garbage to my mailer. Thanx again!
Somr
May 18th 2007, 7:04 pm
Hey JD
I am having problems with my website using Html format, I have installed the button listed in this post. It worked but I was using this so that others send info to me by filling out the form and sending the results directly to my email.
Here is what the form looks like this somrgenealogy.com/histories/RequestForm
i would like for all the info to be send to me by email instead of using a 3rd party site.
Thank advance
Greg
nicheguy1
May 18th 2007, 9:06 pm
http://scriptslibrary.doteasy.com/index.php?catid=2&blogid=1
Dan
vBulletin® v3.6.8, Copyright ©2000-2008, Jelsoft Enterprises Ltd.