ops, error type:
email.setHostName("mybuss");
email.setFrom("joe@mybuss.com", "Joe");
email.addTo(" jack@mybuss.com", "Jack"); //email.addTo("
jack@mybuss", "Jack");
email.setSubject("Test");
email.setHtmlMsg("Hello dude!");
email.setAuthentication ("joe", "pass123");
email.send();
On 10/4/06, Jonas Fernandes wrote:
>
>
> Hi everybody,
>
> Well, i have a problem to use HtmlEmail.
>
> code :
>
> HtmlEmail email = new HtmlEmail();
>
> try
> {
>
> email.setHostName("mybuss");
> email.setFrom("joe@mybuss.com", "Joe");
> email.addTo(" jack@mybuss", "Jack");
> email.setSubject("Test");
> email.setHtmlMsg("Hello dude!");
> email.setAuthentication ("joe", "pass123");
> email.send();
>
>
> }
> catch(EmailException ex)
> {
> System.out.println(ex.toString());
> }
>
>
> And when i run this code, the follow exception:
>
> org.apache.commons.mail.EmailException:
> Sending the email to the following server failed : mybuss:25
>
> PS.: The user joe and joe´s password are correct. The Hostname too...
> This network configuration i use in an ASP Component to send Email too and
> work correctly!!!
>
>
>
>
> What´s Wrong???
>
>
> Atenciosamente
> Jonas Fernandes
> Equilibrium TI
> Desenvolvimento
--
Atenciosamente
Jonas Fernandes
Equilibrium TI
Desenvolvimento