Click to See Complete Forum and Search --> : Sending mail in Javascript?


Will192
12-09-2002, 10:45 AM
I have a page that users log into with a user id and password. If the forget their password, then I want them to just end their user id and I will email them their password. My problem is that I can't find a way to email them their password in Javascript. I have found ways to do this in VBScript, but not in Javascript.

I am fairly new to web development. My background is in SQL Server and Visual Client/Server applications. So, if there is some easy solution that I am not seeing, please don't flame me.

Thanks in advance for any help with this problem.

Will Summers

AdamGundry
12-09-2002, 10:51 AM
Client side JavaScript alone cannot send email. I believe it is possible using server-side JavaScript, but a better way would probably be to have any required JavaScript fill out a form, which was then POSTed to a Perl form-to-mail script.

There are plenty out there on the Internet, so take your pick.

Alternatively, you can make a form submit using email by using ACTION="mailto:address@example.com" but this will create warnings in the browser.

Hope this helps

Adam

Will192
12-09-2002, 10:56 AM
I am running ASP server also. Is there a way to do it through ASP? Thanks for your fast reply.

AdamGundry
12-09-2002, 11:03 AM
I'm afraid I don't know ASP, so I can't really help you, but you could check out this site (http://www.aspemail.com/).

Adam