Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can you send an email with just JavaScript? 1

Status
Not open for further replies.

T1M

Programmer
Jul 3, 2001
14
0
0
CA
I need to know if you can send an email using just javascript? Any suggestions?
 
No. You can however direct the browser to a "mailto:" link and format that link to include addresses, a subject line and body in the message. It's limited to a total number of characters that you can send with that link. This will open the default mail client software on the visitors computer and they'll have to press send to complete the operation.

In older browser versions, you could submit a form to a mailto: link that would automatically send the form results to a specified address in a very basic text layout. But newer browser versions don't do that any more.

To fully automate mail sending, you'll need a server side solution like ASP.

ToddWW :)
 
yea, ss is a way to go, definetly..
but T1M, if you haven't found it yet, here is a good faq on mailto: protocol: faq215-691 Victor
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top