problem connecting to Gmail server thro' SmtpSSL

I m facing problem sending mail thru my Gmail account, actually I m facing problem connecting to Gmail server,I m using the following code for connection to Gmail server..

import com.jscape.inet.smtpssl.*;

import com.jscape.inet.email.*;

SmtpSsl smtp = null;

smtp = new SmtpSsl("smtp.gmail.com",465);

smtp.connect();

smtp.login(username,password);

EmailMessage message = new EmailMessage();

message.setTo(to);

message.setFrom(username);

message.setSubject("Sending email via Gmail SMTP");

message.setBody("This is the body of the message");

smtp.send(message);

smtp.disconnect();

[665 byte] By [anu_princya] at [2007-10-2 17:50:45]
# 1
Haiidint mention what problem u are facing..any exeption? regardsShanu
mshanua at 2007-7-13 19:09:03 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2

I m getting the following exception:

com.jscape.inet.ipclient.IpClientException: smtp.gmail.com: smtp.gmail.com

at com.jscape.inet.ipclientssl.IpClientSsl.connect(Unknown Source)

at com.jscape.inet.smtpssl.SmtpSsl.connect(Unknown Source)

at SmtpGmail.main(SmtpGmail.java:23)

smtp.gmail.com: smtp.gmail.com

com.jscape.inet.smtp.SmtpException: smtp.gmail.com: smtp.gmail.com

at com.jscape.inet.smtpssl.SmtpSsl.connect(Unknown Source)

at SmtpGmail.main(SmtpGmail.java:23)

anu_princya at 2007-7-13 19:09:03 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 3
Are u sure that u have given the corret smtp address as well as the port number?Shanu
mshanua at 2007-7-13 19:09:03 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 4
Hi,i am also getting the same exeception. Could you please send me the solution. Thx,Prakash.
gnapraa at 2007-7-13 19:09:03 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 5
com.jscape.* is not JavaMail. See the JavaMail FAQ for how to use JavaMailto access GMail.
bshannona at 2007-7-13 19:09:03 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...