A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
video training course this week in the
Joined: Feb 19, 2004
Mar 11, 2004 05:20:00
with the contents of the email already defined?
author and deputy
Joined: Jul 13, 2001
Mar 11, 2004 06:06:00
if you are using Windows & IE then yes, by using activeobject,
The code will not work for all clients, I guess the minimum you need on client side is Windows2000 or office 2000 with an SMTP server (?)
var smtpmail = new ActiveXObject("CDOSYS.Message"); //var smtpmail = new ActiveXObject("CDONTS.NewMail"); use this if above fails smtpmail.To = "email@example.com"; smtpmail.From = "firstname.lastname@example.org"; smtpmail.Subject = "define subejct here" smtpmail.Body = "define body here"; smtpmail.Send();
use this as a tip and search futher in google, post your question here for new doubts if any.
Spritle Software Blogs
Joined: Nov 08, 2001
Mar 11, 2004 06:41:00
ActiveX only is for IE....
Server Side is the only way to go unless you use Mailto tag which uses the clients email.
Joined: Feb 02, 2001
Mar 11, 2004 08:17:00
Look at this one:
It is kind of old (Saturday 25th April 1998) but should be still valid
I agree. Here's the link:
Iterating through a collection that contains user defined objects
javax.mail.SendFailedException: Invalid Addresses; nested exception is: com.sun.mail.smtp.SMTPAddres
SHA1 digest error for javax/mail/MessagingException
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015