Answers for "javascript email client"

0

onclick send to email javascript

function sendMail() {
    var link = "mailto:[email protected]"
             + "[email protected]"
             + "&subject=" + encodeURIComponent("This is my subject")
             + "&body=" + encodeURIComponent(document.getElementById('myText').value)
    ;
    
    window.location.href = link;
}
Posted by: Guest on October-22-2020
0

onclick send to email javascript

<textarea id="myText">
    Lorem ipsum...
</textarea>
<button onclick="sendMail(); return false">Send</button>
Posted by: Guest on October-22-2020
2

javascript email link

<body onload="javascript: window.location.href='mailto:[email protected]';">
Posted by: Guest on March-25-2020
0

javascript client side email

var addresses = "";//between the speech mark goes the receptient. Seperate addresses with a ;
var body = ""//write the message text between the speech marks or put a variable in the place of the speech marks
var subject = ""//between the speech marks goes the subject of the message
var href = "mailto:" + addresses + "?"
         + "subject=" + subject + "&"
         + "body=" + body;
var wndMail;
wndMail = window.open(href, "_blank", "scrollbars=yes,resizable=yes,width=10,height=10");
if(wndMail)
{
    wndMail.close();    
}
Posted by: Guest on July-24-2021

Code answers related to "javascript email client"

Browse Popular Code Answers by Language