i am trying send mail in java script

  • Thread starter panda.lopamudra
  • Start date
P

panda.lopamudra

hi to all,

i am trying this way...any one can help me...
function initMail(form) {
text = "Check out this page: " + window.location;
form.message.value + " (" + form.to.value + "):\n\n" +
form.sendto.value + " (" + form.to.value + "):\n\n"
+ text + "\n\nYour Friend,\n" + form.sendername.value + "(" +
form.senderemail.value + ")";
return (form.to.value != "");


form name=emailform method=post
action="mailto:[email protected]"


help me in this
 
E

Erwin Moller

hi to all,

i am trying this way...any one can help me...
function initMail(form) {
text = "Check out this page: " + window.location;
form.message.value + " (" + form.to.value + "):\n\n" +
form.sendto.value + " (" + form.to.value + "):\n\n"
+ text + "\n\nYour Friend,\n" + form.sendername.value + "(" +
form.senderemail.value + ")";
return (form.to.value != "");


form name=emailform method=post
action="mailto:[email protected]"


help me in this

Don't use a form.
http://classicasp.aspfaq.com/email/...ion-mailto-to-mail-the-results-of-a-form.html

If you must, simply use:
<a href="mailto:[email protected]?subject=bladiebla">Mail to Bla</a>

Regards,
Erwin Moller
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,053
Latest member
BrodieSola

Latest Threads

Top