473,387 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How to send form data to email id by using JavaScript

Hi,

I want to send form data to given email id, I'm using
mailto:ur@mail.com, but it doesn't working
it dirsctly goes to localSystem A/C i.e outlook..

<form name="form1" method="post"
action="mailto:ma******@gmail.com"
enctype="text/plain">

<table width="100%" border="0"
cellspacing="0" cellpadding="0" valign="top">
<tr>
<td width="19%" height="28"><div
align="right"><font face="Times New Roman, Times, serif">Name:</font></
div></td>
<td width="79%"><input
name="textfield" type="text" size="22" width="150%"></td>
<td width="2%">&nbsp;</td>
</tr>
<tr>
<td height="30" width="19%">
<div align="center"><font face="Times New Roman, Times, serif">EMail</
font>:</div></td>
<td><input name="textfield2"
type="text" size="22" width="150%"></td>
<td>&nbsp;</td>
</tr>
<tr>
<td height="29"><div
align="right"><font face="Times New Roman, Times, serif">Phone:</
font></div></td>
<td><input name="textfield3"
type="text" size="22" width="150%"></td>
<td>&nbsp;</td>
</tr>
<tr>
<td height="22" colspan="3"><div
align="left"><font face="Times New Roman, Times, serif">Comments/
Queary
:</font></div></td>
</tr>
<tr>
<td>&nbsp;</td>
<td rowspan="2"
valign="top"><textarea name="textarea" rows="5"></textarea></td>
<td>&nbsp;</td>
</tr>
<tr>
<td height="82">&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td><input type="submit"
name="Submit" value="Submit">
<input type="Reset"
name="Submit2" value="clear">
</td>
<td>&nbsp;</td>
</tr>
</
table>
</form>
Please check this one.

Jun 22 '07 #1
1 3991
Malli mindwave wrote:
Hi,

I want to send form data to given email id, I'm using
mailto:ur@mail.com, but it doesn't working
it dirsctly goes to localSystem A/C i.e outlook..

<form name="form1" method="post"
action="mailto:ma******@gmail.com"
enctype="text/plain">

<table width="100%" border="0"
cellspacing="0" cellpadding="0" valign="top">
<tr>
<td width="19%" height="28"><div
align="right"><font face="Times New Roman, Times, serif">Name:</font></
div></td>
<td width="79%"><input
name="textfield" type="text" size="22" width="150%"></td>
<td width="2%">&nbsp;</td>
</tr>
<tr>
<td height="30" width="19%">
<div align="center"><font face="Times New Roman, Times, serif">EMail</
font>:</div></td>
<td><input name="textfield2"
type="text" size="22" width="150%"></td>
<td>&nbsp;</td>
</tr>
<tr>
<td height="29"><div
align="right"><font face="Times New Roman, Times, serif">Phone:</
font></div></td>
<td><input name="textfield3"
type="text" size="22" width="150%"></td>
<td>&nbsp;</td>
</tr>
<tr>
<td height="22" colspan="3"><div
align="left"><font face="Times New Roman, Times, serif">Comments/
Queary
:</font></div></td>
</tr>
<tr>
<td>&nbsp;</td>
<td rowspan="2"
valign="top"><textarea name="textarea" rows="5"></textarea></td>
<td>&nbsp;</td>
</tr>
<tr>
<td height="82">&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td><input type="submit"
name="Submit" value="Submit">
<input type="Reset"
name="Submit2" value="clear">
</td>
<td>&nbsp;</td>
</tr>
</
table>
</form>
Please check this one.
Hi,

The answer is simple: JavaScript don't send email (luckily).
Send your formdata to a server, and let the server send the mail, eg via
PHP.

Regards,
Erwin Moller
Jun 22 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Marek Mänd | last post by:
Is there any tutorials available how to create a png data totally on the client side using javascript and then show that image?
3
by: Kenny | last post by:
I'm trying to retrieve the data off a form (survey.htm) and email the results back to me using CDO and ASP (survey.asp). I'm confused as to how to retrieve the form data from survey.htm and send...
4
by: Andrea De Santi | last post by:
How can I redirect to another page with form data? In asp Classic I write: <form ... action="filename">...</form> and in then target page I write <%=request.form("fieldname")%> ..... but in...
5
by: lbolognini | last post by:
Hi all, I was wondering if there's a technique to use POST instead of GET to send data back to a form so to refill it with user input after this hasn't passed validation. Any clues? ...
2
by: phillipmcgough | last post by:
I need to know how I can have a form sent to an email that is in a URL. For example: If I have a site with a form that has First Name: Last Name: Email: Phone: in it, and a person goes to...
4
by: dipal | last post by:
i want to sen email using javascript but its not working using mailto
2
by: Malli mindwave | last post by:
Hi, We are using the yahoowebHostiing service for my company website, In that one screen of the SendComments/FeedBack section is there, I'm basically dot.net develeoper ,but yahoowebhosting not...
10
by: Big Moxy | last post by:
I want to redirect the user back to the home page after submitting their form inquiry and display a message on the home page. I tried this in my send mail (apply.php) file - $_SESSION == "Thank...
2
by: konkikiska | last post by:
hi frnds can any one give a guidance to send form data to email
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.