I need to send a mail using javascript with
an attachment from a client-side script.Is there any
method?I think that this can be done using Netscape.
I dont want mailto or script using Outlook 98/2000!
Thanks!
If you need to run the script client-side, you will probably have to use a cgi (which would actually run on the server anyway) unless you use mail-to, because client-side you would be using the viewer's email (like Outlook, etc.)
If you need a simple script, you can run it server-side on as asp page using CDONTS, something like this:
var objNewMail = Server.CreateObject("CDONTS.NewMail"
objNewMail.BodyFormat = 0;
objNewMail.MailFormat = 0;
objNewMail.Send();
objNewMail = null;
Your server has to be set up to work with CDONTS.
Of course, if your attachment is coming from the client, that's different, and you are back to using a cgi.
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.