HTML - Form Code For Sending An Email
Hello
I've searched the web for a simple form code that has a "submit" button, so that when a user clicks it I will receive an email with the submitted data - but - I want the user to click "submit" without being transferred to his default email program. I want him only to enter the data and when he presses the button, the data will be sent to my email. I want to put this code in a blog that supports HTML. What code can I use for it? I hope I made my question clear. I will really be happy to receive your help. Thank you very much. Similar TutorialsHi I am learning XHTML and was wondering if you could help me to give me the tag on how to send a form by email in 'clean' text (no word1+word2+word3... format). I have tried several things and failed. Thank you in advance if you can help. Hope someone can help me. I've got a html page set up so that my clients can type in their name, choose several options via radio buttons, an option to clear the form, then submit the form. What I'm having trouble with is how to obtain the information from the form. I think I would prefer this to be retrieved via email. Is there a way I can: 1. Have the subject of the email be the name of the client (whatever they type in) 2. The results of the form sent to my email (let's say it's myemail@university.edu) Thanks in advance! Here is the html code I have: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Bonus</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <form method = "post" action = "mailto:myemail@university.edu"> <p> Type your name in the box below then select the advancing team and click <i>submit</i> when finished. </p> <p> Name: <input type = "text" name = "name" maxlength = "30"/> </p> <table border = "5"> <tr> <td colspan = "2" align = "center"><b>STANLEY CUP PLAYOFF HUNT BRACKET</b></td> </tr> <tr> <td width="328" align = "center">Eastern Conference</td> <td width="359" align = "center">Western Conference</td> </tr> <tr> <td><input type = "radio" name = "group1" value = "BB"/>Boston Bruins (1) <input type = "radio" name = "group1" value = "MC"/>Montreal Canadiens (8)</td> <td><input type = "radio" name = "group2" value = "SJS"/>San Jose Sharks(1) <i>vs.</i> <input type = "radio" name = "group2" value = "AD"/>Anaheim Ducks (8)</td> </tr> <tr> <td><input type = "radio" name = "group3" value = "WC"/>Washington Capitals (2)<input type = "radio" name = "group3" value = "NYR"/>New York Rangers (7)</td> <td><input type = "radio" name = "group4" value = "DRW"/>Detroit Red Wings (2) <i>vs.</i><input type = "radio" name = "group4" value = "CBJ"/>Columbus Blue Jackets (7)</td> </tr> <tr> <td><input type = "radio" name = "group5" value = "NJD"/>New Jersey Devils (3) <input type = "radio" name = "group5" value = "CH"/>Carolina Hurricans (6)</td> <td><input type = "radio" name = "group6" value = "VC"/>Vancouver Canucks(3) <i>vs.</i><input type = "radio" name = "group6" value = "SLB"/>St. Louis Blues(6)</td> </tr> <tr> <td><input type = "radio" name = "group7" value = "PP"/>Pittsburgh Penguins (4) <input type = "radio" name = "group7" value = "PF"/>Philadelphia Flyers (5)</td> <td><input type = "radio" name = "group8" value = "CB"/>Chicago Blackhawks (4) <i>vs.</i><input type = "radio" name = "group8" value = "CF"/>Calgary Flames (5)</td> </tr> </table> <p></p> <p><input type = "reset" value = "Reset"/> <input type = "submit" value = "Submit" /></p> </form> </body> </html> Hi I'm sending an HTML file as an Email attachment. When I send it the <meta> tag contains "charset=iso-8859-8" - Hebrew(ISO-Visual) but when the recipiant opens it the charset has changed to "charset=iso-8859-8-i" - Hebrew(ISO-Logical) which causes the text to appear left-to-right instead of right-to-left as I sent it. What causes this behaviour and how can I correct it? Thanks for any help David Paddling upstream searching for the source Hi, ive been trying for ever, but i just cant make a code that forwards all the emails from my contact form thing to my email adress. if you want me to be more spacific, just ask. ---------------- Thanks, zigga here is the story.. i have a form, after the user fills the form an email will be sent containing the user input to send the email, at the end of the form i used <input type="submit" ...> and the action of the form is "mailto:bla bla" now the problem is, i want to put an image instead of the submit button, if there is no submit button there is no form action, how can i send the email ??? i know two ways to send an email, in the action of a form & in the href of a link tag, is there another way to do that?? really appreciated Guys , can you help me with a script for the requirement below? I need an email sending script with 2 fields and a button. The first one is number , and second is msg. Number field should only have 10 numbers only, and should verify whether it begin with zero. The msg field should have only 135 charactors. When people type a number and a msg , the email should be sent with details below...! From : blank if possible. If not , smsmaster@esecrets.tk To : 9471xxxxxxx@sms.Mobitel.lk (xxxxxx means the last 7 digits of what people entered in number field. Subject : -no subject- msg : sms.eSecrets.tk xxxxxxxx...... X letters are to the msg field... After people press the button , SEND , it should send msg immeadiately and should return to the url below : m.eSecrets.tk/confiremed please email the script to AyeshLakmal @ gmail . com. Thank you very much. Is there a way to send an email from an HTML page (perhaps using javascript or just HTML) with an attachment? I know it can be done with server-side scripts but what about from the client only? So far everything I've tried generates an email but without the attachment. Thanks! I have run into an issue email html code. It seems that some or all email clients use Quoted-Printable encoding when display messages. Quoted-Printable encoding will change the = the 3d= whick for most tags is not an issue. However, our cart provider uses a form for our add to cart, view cart etc.. and cannot interpret the Quoted-Printable encoding. What happens is the tag in there form ID="cartID" is turned into ID3D="cartID" when displayed in an email client... Which fails on our cart providers server. Any help, ideas or suggestions? I have created some forms and want them to be submitted to an email address, but when I click the submit button it opens my email program instead of submitting. Site: www.dismantledesign.com/website Here is my form code: Code: <form class="form" action="mailto:matthewtyndall@gmail.com" method="POST" enctype="multipart/form-data" name="EmailForm"> <input type="hidden" name="action" value="verify"><table> <tr><td style="text-align: left;" valign=top><font size="2" FACE="Verdana" color="#000000">Name:</font><small><span style="color:#E00000;" title="Required field">*</span></small></td><td align="left"> <input name="control64609" type="text" value="" size="20"/> </td></tr> <tr><td style="text-align: left;" valign=top><font size="2" FACE="Verdana" color="#000000">Email:</font><small><span style="color:#E00000;" title="Required field">*</span></small></td><td align="left"> <input name="control64610" type="text" value="" size="20"/> </td></tr> <tr><td style="text-align: left;" valign=top><font size="2" FACE="Verdana" color="#000000">Phone:</font><small><span style="color:#E00000;" title="Required field">*</span></small></td><td align="left"> <input name="control64611" type="text" value="" size="20"/> </td></tr> <tr><td style="text-align: left;" valign=top><font size="2" FACE="Verdana" color="#000000">City:</font><small><span style="color:#E00000;" title="Required field">*</span></small></td><td align="left"> <input name="control64613" type="text" value="" size="20"/> </td></tr> <tr><td style="text-align: left;" valign=top><font size="2" FACE="Verdana" color="#000000">Subject:</font><small><span style="color:#E00000;" title="Required field">*</span></small></td><td align="left"> <input name="control64614" type="text" value="" size="20"/> </td></tr> <tr><td style="text-align: left;" valign=top><font size="2" FACE="Verdana" color="#000000">Message:</font><small><span style="color:#E00000;" title="Required field">*</span></small></td><td align="left"> <textarea name="control64615" rows="7" cols="35"></textarea> </td></tr> <tr><td valign=top><font size="2" FACE="Verdana" color="#000000">Verification No.:<small><span style="color:#E00000;" title="Required field">*</span></small></font></td> <td align="left" valign=top><input name="txtNumber" type="text" id="txtNumber" value="" size="10"></td></tr> <tr><td align=right><a title="Don't know why you have to enter this verification number? Click here!" href="http://www.123contactform.com/faq.html"><img border="0" src="http://www.123contactform.com/img/help_icon.gif" alt="contact form faq"></a></td> <td align="left"><img src="http://www.123contactform.com/random.php"></td> </tr> <tr><td></td><td align="left"><input type="submit" value="Send email"/></td></tr> </table> </form> Im new to all this so excuse me if i ask/say stupid things...im still learning so im doing an email newsletter with like 8 images or so and its all good,so actually there is no problem...but thats what i dont understand. The path for the pictures is this: <img style="display:block;"src="file:///C|/Users/robbysanne/Documents/nieuwsbrieftemplates/html/images/se1.jpg"width="69"height="235"border="0"alt=""/> there in tables. So the images are on my harddrive...not online...but when i send the email with mozilla thunderbird to various hotmail,and gmail acounts on different computers elswhere the pictures still show up....and not as an attachment that you first have to download,but the whole newsletters displays properly. How is that possible? i thought that i was supposed to put the images on a server first,get them online and then link them.. thanks! I've made my email newsletter using html and uploaded it to my server. I only need to get the html coded newsletter into the gmail client. After searching on google for a couple hours I've gotten frustrated not being able to find the correct method of doing this. I tried clicking and dragging from the uploaded html file in my internet browser, which sort of works except I then lose all the hyperlinks (text and image) in the transfer. What exactly is the process in doing this? Thanks a ton! Hi, I want to put in a form to get queries from the user, like so: Name: Email: Comments: 'Send' button and that it will send the information to my email address which is gmail? Thanks I have an online form done in html. I need the person to be able to submit the form first and then be able to print the form after they have sent it. How can this be done? Thanks Really dumb question... How do you get the forms to send to your e-mail account? I need a simple, easy-to-set-up-but-relieable way to do it. Hi, its been many years since i've done any website / html work but a friend of mine asked me to help him add a form to his marriage website that basically works as a RSVP option. he wants people to be able to add their name and click if they are going to be attending or not...click submit and have it send it to his e-mail. Making the form was easy (and i won't bore u with the code), the only problem i'm having with is how to make the submit button send an e-mail. I did some looking and it seems like its going to require the user to have sending e-mails enabled thru their browser? does anyone know of an easy way to do this (preferably one that doesn't require the user to have any sort of brain) ? Simple is better and all i need is a quick fix thx for any help bigunn I'm trying to figure out if it is possible to send data from a form directly to an email address without being redirected to the user's default email app or using a CGI script. I have little to no background in PERL and while I realize I'm going to have to become well versed in it (and am in the process of learning it) I need a solution to this immediate problem. Any suggestions would be welcome. Thanks. Below is the relevant block of code: ********* <form method=post action="mailto:youremailaddress@user.com" enctype="text/plain"> <table width="90%" cellpadding="0" border="0" align="center" cellspacing="0"> <tr> <td width="40%" valign="top"> <font face="times" color="#000340" size="3"> Name: <br /><br /></td><td width="*" valign="top"> <input type="text" name="Name" size="20" /> </td> </tr> <tr> <td width="40%" valign="top"><font face="times" color="#000340" size="3">Company: <br /><br /> </td> <td width="*" valign="top"><input type="text" name="Company" size="20"> </td> </tr> <tr> <td width="40%" valign="top"><font face="times" color="#000340" size="3">Company Address: <br /><br /> </td> <td width="*" valign="top"><input type="text" name="Address" size="20"> </td> </tr> <tr> <td width="40%" valign="top"><font face="times" color="#000340" size="3">Zip Code: <br /><br /> </td> <td width="*" valign="top"><input type="text" name="ZipCode" size="20"> </td> </tr> <tr> <td width="40%" valign="top"><font face="times" color="#000340" size="3">Phone: <br /><br /> </td> <td width="*" valign="top"><input type="text" name="Phone" size="20"> </td> </tr> <tr> <td width="40%" valign="top"><font face="times" color="#000340" size="3">Email Address: <br /><br /> </td> <td width="*" valign="top"><input type="text" name="email" size="20"> </td> </tr> <tr> <td width="40%" valign="top"><font face="times" color="#000340" size="3">Requested Product(s): <br /><br /> </td> <td width="*" valign="top"><textarea cols="20" rows="4" name="comment" ></textarea><br /><br /> <input type="submit" value="Submit"> <br /><br /> </td> </tr> </table> </form> Hi guys - sorry for this dumb post but It's my first go at this. I am using a simple form to pull in a user name and add it to a URL. However, it is converting -]^ etc to HEX. code: <form name="input" action="http://www.eclive.org/shotdetails.aspx" method="get"> Username: <input type="text" name="user"> <input type="submit" value="Submit"> </form> If I input user name -]Sa^Bison it returns this: http://www.eclive.org/shotdetails.as...-%5DSa%5EBison I have tried method="post" and that does not even pass the input accross. If I type the URL in manually it works great and returns the results I want, as in http://www.eclive.org/shotdetails.aspx?user=-]Sa^Bison I know it's going to be obvious here but ... Any help appreciated!! hi. I put up 2 forms on my site bwsciencelabs.com and they both work well, except they won't send. What am I doing wrong? Thanks I am trying to create a form in HTML that will allow the user to select a department from a drop down and also enter their email address. on submit the form will be sent to the email address corresponding to the department as well as sending the user a copy of the form(the email address they entered manually). This code only sends the form to Dept1 & Dept2. If I move the "email_count" input field before "name1" then it sends the user email and the Dept1 email only. This works great if they select Dept1 each time, not so much if a different department is chosen. Any help would be great! I don't have access to the cgi code. Here is what I have so far: <form action="http://intranet/cgi-bin/genemail.cgi" method="POST" enctype="x-www-form-encoded" class="body" name="theform" onSubmit="return formCheck()"> <input type="hidden" name="FORM" value="IDEA Form"> <input type="hidden" name="sendto" value="MORE_EMAIL"> <input type="hidden" name="name1" value="Dept1"> <input type="hidden" name="email1" value="Dept1@email.com"> <input type="hidden" name="name2" value="Dept2"> <input type="hidden" name="email2" value="Dept2@email.com"> <input type="hidden" name="name3" value="Dept3"> <input type="hidden" name="email3" value="Dept3@email.com"> <input type="hidden" name="name4" value="Dept4"> <input type="hidden" name="email4" value="Dept4@email.com"> <input type="hidden" name="email_count" value="2"><!--for email to submitter--> Here is the option box: <select name="name_choice"> <option selected>Dept1</option> <option>Dept2</option> <option>Dept3</option> <option>Dept4</option> </select> Here is the text box that the user will enter their email address: <input name="email5" type="text" value="first.last@email.com" size="50" id="UserEmail"> Here is my submit code; <input type="submit" name="Submit" value="Submit"> script completed, thx |