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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how do i send an email in javascrip

Status
Not open for further replies.

wazilian1

Programmer
Nov 8, 2002
38
US
how do i send an email in javascript(not vbscript) using asp? thanks in advance. wazilian
King of Wazil
 
You can't. Most Javascript is client side. The only thing you can do is open up their mail client (mailto:asdads@sdas.com). You have to send mail server side.

Aaron
 
if you are refering to simply writing your ASP code in javascript then just add
<%@ LANGUAGE=&quot;javascript&quot; %>
then you will be able to write the javascript for your coding.

however, the mail component will not change syntax wise I believe. for instance the syntax for ASPMail as a example is Mailer.BodyText = &quot; &quot; and this will not change via the declaration of the scripting language being used

The syntax for coding in vbscript really is much easier to debug and write (my opinion) then javascript though.
I suggest finding examples of mailer components and simply using vbscript to make the script much happier. :)



---------------------------------------
{ str = &quot;sleep is good for you. sleep gives you the energy you need to function&quot;;
ptr = /sleep/gi;Nstr = str.replace(ptr,&quot;coffee&quot;);alert(Nstr); }
---------------------------------------
for the best results to your questions: FAQ333-2924

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top