Hi
I am using Commons Email, SimpleEmail object is created and values are being
set. But when i execute that code, it throughs
exception with following description
"errorsorg.apache.commons.mail.EmailException: Sending the email to the
following server failed :"
Please suggest me to resolve my problem. I have written following code
/*********************************************************************************/
SimpleEmail email = new SimpleEmail();
email.setHostName("mail.myserver.com");
//email.setSmtpPort(465);
email.addTo(" [EMAIL PROTECTED]", "XYZ");
email.setFrom("[EMAIL PROTECTED]", "FROM");
email.setSubject("Subject");
email.setMsg("Sample Text");
email.send();
/*****************************************************************************/
Thanks
Kashif Inam