Thanks I checked it out but the prerequsits throw me a bit, I
am not on a dedicated server and wouldn't be able to make these
changes. below
Prerequisites
1. Create the new folder secure_inet in C:\CFusionMX7\Mail;
2. On the jscape.com page above, click on the link to download
"Secure iNet Factory"; 3. Enter your e-mail address and agree to
the terms; 4. Download setup.exe ; 5. Launch the setup executable
and choose to extract to the directory
C:\CFusionMX7\Mail\secure_inet . This ensures that the key JAR
file, sinetfactory.Jar will be stored as
C:\CFusionMX7\Mail\secure_inet\lib\sinetfactory.Jar; 6. In the
Coldfusion Administrator, add this to the JVM classpath:
C:\CFusionMX7\Mail\secure_inet\lib\sinetfactory.Jar 7. Restart the
Coldfusion MX server service. 8. Run the coldfusion script. It
should go like an intercity train.
it would be great if you could just implement this code.
<cfscript>
// create new instance SSL_SMTP_obj =
CreateObject("java","com.jscape.inet.smtpssl.SmtpSsl").init("smtp.gmail.com",465
);
// address the message email_message
=CreateObject("java","com.jscape.inet.email.HtmlEmailMessage");
email_message.setTo("joe@blow.com");
email_message.setFrom("me@you.com");
email_message.setSubject("Email Subject");
email_message.setHtmlBody("the body of the message");
// connect, send the message, disconnect try
{
SSL_SMTP_obj.connect();
SSL_SMTP_obj.login("your GMAIL user
account","GmailPassowrd");
SSL_SMTP_obj.send(email_message);
SSL_SMTP_obj.disconnect();
}
catch(Exception e)
{
WriteOutput(e);
}
</cfscript>
Kris