Question:
Can anyone help me with HTML/JavaScript mailto?
lee_lee07770
2010-10-14 05:57:45 UTC
I have a form on my webpage, created from HTML and JavaScript, that uses mailto so users can send comments/suggestions to my email. I have a couple of questions.First, why is it in the messages I receive I see x/y coordinates? For example, x=38 and y=42, as part of the message? Secondly, using mail to automatically sends the message in Internet Explorer, but in Chrome it pulls up an outlook email box and my users have to re-enter all the information they just entered on my webpage? Is there any reason mailto does not work the same in both browsers? How do I get it to work in both browser? I'm new at this, and I don't know any other way to do it. I do not want to make them use outlook. I want them to be able to fill out the fields on my page and click submit and nothing else, and it works fine in IE. Help!?!
Four answers:
2010-10-14 19:47:04 UTC
Probably because that part of the form is not a hidden input. Just a guess withnothing to work with.

Not recommended:





Basic Client-Side Mailto: Form:





: name


: email


comments

















mailto - Web-based email Form Handler: http://www.washington.edu/webinfo/mailto/





Recommend using a server-side script language if your web site allows it. Otherwise, you will have to use a client-side dependent "mailto:" action to get the form info sent to you.



Your current hosting package MUST allow SMTP ( http://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol ) to work. Otherwise, no email can be sent.



PHP: Sending Email Tutorial (Text/HTML/Attachments): http://www.webcheatsheet.com/php/send_email_text_html_attachment.php



Use any of the below sites to make the workable form you need:



For making forms:



These are really good online form makers. Just follow the instructions for making it and uploading file(s).



Contact Form Generator: http://www.tele-pro.co.uk/scripts/contact_form/

WYSIWYG Form Maker: http://www.jotform.com/?gclid=CNKhqei1wJ4CFRQhnAod6laUqA

http://www.thesitewizard.com/wizards/feedbackform.shtml

Ajax - Creating an HTML Form: http://www.tizag.com/ajaxTutorial/ajaxform.php

http://www.phpform.org/



http://www.thepcmanwebsite.com/form_mail.shtml

http://emailmeform.com/





Ron
Stas S
2010-10-14 06:50:07 UTC
If you do not want to configure mail client on each user machine send email from the server. How to do it depends on the langauge you use on the server.



There is the parameters like body, subject on the mailto:




So you can put additional info in mailto and mail claient will be open with your data. Use javascript to combine body and subject from form.



I need to see html and javascript to say why it brings coordiantes.
2016-11-04 17:28:46 UTC
No, you purely look quite beautiful and warm. you will possibly no longer realize it, yet you're smoking sexy! do no longer pay attention to the persons who say you're caught up, because of the fact those human beings are purely jealous of your great looks. desire I helped. Maxwell


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...