How to send an email in javascript? -


this question has answer here:

i making simple website, save making send text email using javascript.
want make send directly, if there no way fine if sends going email site.
code far looks this:

    var = function(){ var b = document.getelementbyid("email").value; document.getelementbyid("textarea").value.mailto=b; }; 

i want code send value of textarea.

you should have server somewhere listens email sending commands. javascript should send ajax request server, passing necessary data , triggering email sending functionality. server, in turn should send email(s) , respond javascript part notify client-side whether successful.


Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -