473,549 Members | 2,592 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to send email to the addresses added in the text area of the form??

I have a form which has a textarea,name - txtTo where he adds email
addresses.Now when he clicks on sendemail I want to open a mailto link
with addresses taken from textarea.

Example

I added in the text area these three addresses
di********@yaho o.com,ew**@yah. com,gj*@yahoo.c om

and now when I click on send email a ComposeMail window in outlook
should open with these addresses added in the To field.

Can any body help me out with how to do this.do I need to write
javascript for this.

I tried sumthnglike this:-

<A HREF = 'mailto:" & txtTo.value & "'>
SendEmail </A></span>

This doesnot work it opens a compose mail with & txtTo.value & in the
To field.I can the contents of text area to appear in to field.Plz
Suggest a way.

Cheerz
Divya

Aug 24 '06 #1
1 2315
I did it this way,But still there is problem,

function Sendemail () {
emails=document .form1.txtTo.va lue;
window.location = "mailto:"+email s;

//window.location = "mailto:" +
document.form1. txtTo.value ;
}

and included this in body
<A>

<img border="0" src="send%20ema il.bmp" width="125" height="30"
onclick="Sendem ail()" >

</A>

Now the problem is it adds only one address from the text area .
Example
I hav following addresses in the text area

"Ap*********@in genero.com" <ap*********@in genero.com>, "Ashish Pethe"
<ap****@ingener o.com>, "Ashwini Pasricha" <ap*******@inge nero.com>,
"Balaji Kale" <bk***@ingenero .com>

Now when I click ComposeMail new window opens but with only one address
"Ap*********@in genero.com"

Plz Help me why doesn't it insert all the text in the text area into
the To field of Composemail window of Outlook.

Regards
Divya


divya wrote:
I have a form which has a textarea,name - txtTo where he adds email
addresses.Now when he clicks on sendemail I want to open a mailto link
with addresses taken from textarea.

Example

I added in the text area these three addresses
di********@yaho o.com,ew**@yah. com,gj*@yahoo.c om

and now when I click on send email a ComposeMail window in outlook
should open with these addresses added in the To field.

Can any body help me out with how to do this.do I need to write
javascript for this.

I tried sumthnglike this:-

<A HREF = 'mailto:" & txtTo.value & "'>
SendEmail </A></span>

This doesnot work it opens a compose mail with & txtTo.value & in the
To field.I can the contents of text area to appear in to field.Plz
Suggest a way.

Cheerz
Divya
Aug 24 '06 #2

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

Similar topics

0
2936
by: cooldv | last post by:
i have an *access database + ASP newsletter* that is working fine and it sends newsletter to ALL the email addresses in the DB. i want to send this newsletter to only a select group (like people with same name or same city etc). how do i do that? here is the code of newsletter. where should i make changes? Thanx in advance for ur help. ...
2
1793
by: Yllar2003 | last post by:
Hi! Perhaps slightly off-topic but... I want to implement a function to send emails to the registered users from my web site using ASP. The problem is that the web server provider I'm using does not support any email components (such as CDO, CDONTS, or third-party) or SMTP server. Therefore I'm looking for some free email/SMTP provider...
6
11166
by: DigitalRick | last post by:
I have been running CDONTS in my ASPpages to send emails to me sent from my guestbook. It had been working fine untill I upgraded to Server 2003 (I am also running Exchange 2003) all locally. I will include the code I originally used. I understand I should switch from CDONTS to CDO mail but after several sttempts I am finding a very hard...
0
2428
by: dreamsoul620 via AccessMonster.com | last post by:
Hi all! I'm trying to set up an email application for my database. I tried linking to my Outlook address book, but when reading from the table, I receive an error message saying I need to restart Access. So I set up a table and a form for users to add email addresses. I have another form (Email_Report) that allows the user to select...
16
2976
by: bgreer5050 | last post by:
I have a form with the following fields: UserEmail Subject Body When the form is submitted, the email is processed fine. When I try to add another field to the mm.body (mm.Body = Body.Text & Listbox1.SelectedItem.Text) the smtp.Send fails. Any ideas ?
5
2151
by: Mike | last post by:
I have a page with a textbox that a user can enter in mutliple email addresses such as: user1@yahoo.com;user2@yahoo.com;user3@gmail.com; and so on, I then have a foreach loop to get all of the emaill addresses and send emails out. the problem is that all of the email addresses the email is being sent to is showing in the section so...
2
2473
by: kennykenn | last post by:
Hi, Ive producd code to send an email after capturing info off a form,it works fine locally but when i put it live it doesnt work! the code is stopin at 'msg.send' any ideas, here the code! <%
4
1992
by: chris | last post by:
I need to maintain a list of subscribers to an email list for a "newsletter" that will be sent via a web form probably once a month. I anticipate low numbers--tens to maybe one hundred subscribers at the most. Just curious what the best way to code this is. Should I just loop through the addresses and send one-off emails to each, or is it...
7
2080
by: SAF22 | last post by:
Hi guys, I'm a pretty basic coder with very limited skills. I've been researching this question everywhere and I can't find anything that works. What I'm trying to do is simply send a form which is filled out on their webpage, to their email address. Currently I am using a mailto: function which I desperately want to avoid. Also, if it...
0
7527
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7459
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...
0
7726
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. ...
0
7967
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...
1
7485
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...
0
5097
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3488
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1064
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
772
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.