commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dion Gillard" <dion.gill...@gmail.com>
Subject Re: Commons Email - Mail Sending Error
Date Sun, 09 Apr 2006 23:48:56 GMT
Any more detail in the exception stack trace?

On 4/8/06, Kashif Inam <kashif.inam@gmail.com> wrote:
>
> 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(" test@gmail.com", "XYZ");
>                         email.setFrom("test@server.com", "FROM");
>                         email.setSubject("Subject");
>                         email.setMsg("Sample Text");
>                         email.send();
>
>
> /*****************************************************************************/
>
> Thanks
> Kashif Inam
>
>


--
http://www.multitask.com.au/people/dion/
Chuck Norris sleeps with a night light. Not because Chuck Norris is afraid
of the dark, but because the dark is afraid of Chuck Norris

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message