Erro no envio de e-mail  XML
Índice dos Fóruns » Desenvolvimento Web
Autor Mensagem
leonardom
Virtual Machine Man
[Avatar]

Membro desde: 23/02/2003 11:41:23
Mensagens: 679
Localização: Anywhere
Offline

Pessoal,

Estou desenvolvendo um projeto que necessita disparar um e-mail automaticamente. Quando executo o projeto local no NetBeans o e-mail e disparado corretamente, porém quando coloque este projeto no servidor da empresa, tudo funciona oque só que na hora de disparar o e-mail ocorre uma MessagingException. Será que alguém pode me dar uma luz?

"If you have an apple and I have an apple and we exchange apples then you and I will still each have one apple. But if you have an idea and I have an idea and we exchange these ideas, then each of us will have two ideas."

George Bernard Shaw (1856 - 1950) - Irish dramatist - Nobel Prize of Literature, 1925

blog: http://leonardom.wordpress.com
http://www.insidecode.com.br
[Email] [MSN]
mauriciotrust
Thread.start()

Membro desde: 18/03/2003 10:26:35
Mensagens: 44
Localização: São Paulo
Offline

cara... posta a Exception ai....

:2gunfire: :black:

Maurício Rodrigues
[Email] aim icon [MSN] [ICQ]
leonardom
Virtual Machine Man
[Avatar]

Membro desde: 23/02/2003 11:41:23
Mensagens: 679
Localização: Anywhere
Offline

Bom ocorre a seguinte exception:


Sending failed;
nested exception is:
class javax.mail.MessagingException: 501 Syntax: HELO hostname

javax.mail.SendFailedException: Sending failed;
nested exception is:
class javax.mail.MessagingException: 501 Syntax: HELO hostname

at javax.mail.Transport.send0(Transport.java:21
at javax.mail.Transport.send(Transport.java:80)
at com.abet.recepcaodeclaracaoinss.Mail.sendSimpleMail(Mail.java:53)
at com.abet.recepcaodeclaracaoinss.Mail.sendSimpleMail(Mail.java:26)
at com.abet.recepcaodeclaracaoinss.Declaracao.atualizarDados(Declaracao.java:669)
at _0002fExibirDeclaracao_0002ejspExibirDeclaracao_jsp_0._jspService(_0002fExibirDeclaracao_0002ejspExibirDeclaracao_jsp_0.java:174)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
Sending failed;
nested exception is:
class javax.mail.MessagingException: 501 Syntax: HELO hostname

javax.mail.SendFailedException: Sending failed;
nested exception is:
class javax.mail.MessagingException: 501 Syntax: HELO hostname

at javax.mail.Transport.send0(Transport.java:21
at javax.mail.Transport.send(Transport.java:80)
at com.abet.recepcaodeclaracaoinss.Mail.sendSimpleMail(Mail.java:53)
at com.abet.recepcaodeclaracaoinss.Mail.sendSimpleMail(Mail.java:26)
at com.abet.recepcaodeclaracaoinss.Declaracao.atualizarDados(Declaracao.java:669)


Será que alguem pode me dizer poque ocorre isso. Como eu disse quando testo o projeto local no NetBeans funciona perfeito, o erro só ocorre quando a aplicação está no servidor.

"If you have an apple and I have an apple and we exchange apples then you and I will still each have one apple. But if you have an idea and I have an idea and we exchange these ideas, then each of us will have two ideas."

George Bernard Shaw (1856 - 1950) - Irish dramatist - Nobel Prize of Literature, 1925

blog: http://leonardom.wordpress.com
http://www.insidecode.com.br
[Email] [MSN]
 
Índice dos Fóruns » Desenvolvimento Web
Ir para:   
Powered by JForum 2.1.8 © JForum Team