473,785 Members | 2,261 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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"><di v
align="right">< font face="Times New Roman, Times, serif">Name:</font></
div></td>
<td width="79%"><in put
name="textfield " type="text" size="22" width="150%"></td>
<td width="2%">&nbs p;</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="textfield 2"
type="text" size="22" width="150%"></td>
<td>&nbsp;</td>
</tr>
<tr>
<td height="29"><di v
align="right">< font face="Times New Roman, Times, serif">Phone:</
font></div></td>
<td><input name="textfield 3"
type="text" size="22" width="150%"></td>
<td>&nbsp;</td>
</tr>
<tr>
<td height="22" colspan="3"><di v
align="left"><f ont face="Times New Roman, Times, serif">Comments/
Queary
:</font></div></td>
</tr>
<tr>
<td>&nbsp;</td>
<td rowspan="2"
valign="top"><t extarea name="textarea" rows="5"></textarea></td>
<td>&nbsp;</td>
</tr>
<tr>
<td height="82">&nb sp;</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 4015
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"><di v
align="right">< font face="Times New Roman, Times, serif">Name:</font></
div></td>
<td width="79%"><in put
name="textfield " type="text" size="22" width="150%"></td>
<td width="2%">&nbs p;</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="textfield 2"
type="text" size="22" width="150%"></td>
<td>&nbsp;</td>
</tr>
<tr>
<td height="29"><di v
align="right">< font face="Times New Roman, Times, serif">Phone:</
font></div></td>
<td><input name="textfield 3"
type="text" size="22" width="150%"></td>
<td>&nbsp;</td>
</tr>
<tr>
<td height="22" colspan="3"><di v
align="left"><f ont face="Times New Roman, Times, serif">Comments/
Queary
:</font></div></td>
</tr>
<tr>
<td>&nbsp;</td>
<td rowspan="2"
valign="top"><t extarea name="textarea" rows="5"></textarea></td>
<td>&nbsp;</td>
</tr>
<tr>
<td height="82">&nb sp;</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
2955
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
3036
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 it using survey.asp. Below is a sample ASP script that I found on ASPFAQ.com and it works fine, but now how do I grab the info from a form and incorporate it into the emal. Thanks. Appreciate any help or guidance. Kenny <%
4
3446
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 ASP.NET 1.1 'action' does not exist how can I send form data to another page?... and how can I read a form values (same of ASP classic with request.form("fielsname")?)
5
2178
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? Thanks, Lorenzo
2
2123
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 www.test.com/?email@emailaddress.com (or
4
28614
by: dipal | last post by:
i want to sen email using javascript but its not working using mailto
2
5636
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 support .asp,.aspx files, it supports PHP files, I'm searching in JavaScript ,but not found any matter, I'don't Know PHP.I'm having lot of pressure of higer officials.Please help me on this.
10
20914
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 you for your request! Someone will be contacting you soon."; header("location:index.php"); but got this error -
2
1603
by: konkikiska | last post by:
hi frnds can any one give a guidance to send form data to email
0
9484
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10350
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10157
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10097
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9957
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7505
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5386
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4055
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3658
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.