Click here to Skip to main content
15,072,267 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I would like to send an email when submitting form without using the email from the pc of the user. i would like to set up the smtp and other settings directly from html. can this be done?


JavaScript
function sendMail(_frm) {
    var eml = "emailaddress";
    var bod = form1.fullname + form1.email + form1.regtype;
    var subj = "reg";
    location.href = "mailto:" + eml + subj + bod;
}
Posted
Updated 4-Oct-11 0:27am
v2

Refer some what similar thread

How to send Mail using Javascript[^]
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900