How can we send mail using JavaScript?
Answer Posted / ramesh
At jsscript tag
function sendmail(_frm)
{
var eml="you@youraddress.com";
var bod="&body="+_frm.selOne.value+" ¦¦ "+_frm.txtOne.value;
var subj="?subject=Whatever you want";
location.href="mailto:"+eml+subj+bod;
}
At Form tag
<form action="mailto:you@youraddress.com"
enctype="text/plain"
method="POST" onsubmit="sendmail(this);return false;">
| Is This Answer Correct ? | 28 Yes | 30 No |
Post New Answer View All Answers
Differentiate between php5 and php7?
What is xss and csrf?
How to fix "headers already sent" error in php
What types of loops exist in php?
Why are sessions used?
How do you check if a variable has not been set in php?
How do I install php?
What should be the length of variable for SHA256?
Which escape sequences can be used in single quoted strings in php?
What are hooks in php?
What is default session time and path in php?
What are the advantages of php mysql?
What is the function mysql_pconnect() useful for?
What is the difference between pop3 IMAP and MAPI?
Is php still used?