Sending an Email using Java Script or VB Script

Posted by Nagababu under JavaScript on 10/28/2010 | Points: 10 | Views : 4012 | Status : [Member] | Replies : 2
Hi All,

Please let me know ,how to send emails using javascript in html page.
its required with smtp configration using javascript .
i don't want to just open outlook,i need to send an email automatically using javascript.

Thanks,
Nagababu




Responses

Posted by: Lalji_mer on: 10/28/2010 [Member] Bronze | Points: 25

Up
0
Down
if you don't want to use SMTP then for just information you can visit this URL

http://cybernetnews.com/vbscript-send-emails-using-gmail/

LP MER

Nagababu, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: ramkumarsubramaniyamust-global-6869 on: 10/29/2010 [Member] Starter | Points: 25

Up
0
Down
Hi Naga,

pls try this.
HTML:
<a href="#" onclick="emailForm();" title="E-mail this page">
JavaScript:
function emailForm()
{
var to_address = "..TO ADDRESS..";
var subject = "..YOUR SUBJECT..";
var bdy_msg = "..YOUR MESSAGE..";
var mailto_link = 'mailto:'+to_address+'?subject='+subject+'&body='+bdy_msg;
win = window.open(mailto_link,'emailWindow');
if (win && win.open &&!win.closed) win.close();
}

Nagababu, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response