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.
if you are refering to simply writing your ASP code in javascript then just add
<%@ LANGUAGE="javascript" %>
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 = " " 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 = "sleep is good for you. sleep gives you the energy you need to function";
ptr = /sleep/gi;Nstr = str.replace(ptr,"coffee"alert(Nstr); }
---------------------------------------
for the best results to your questions: FAQ333-2924
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.