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