当前位置: 技术问答>linux和unix
100分紧急求助:java程序在linux下不能发送邮件,windows下正常。
来源: 互联网 发布时间:2015-12-20
本文导语: 用java写得发送email程序,在windows下发送正常,可是当发布到linux系统时,就不能发送邮件了。报错信息: connectSmtp(String, String, String) javax.mail.MessagingException: 500 Error: bad syntax at com.sun.mail.smtp.SMTPTransport.issueCommand(...
用java写得发送email程序,在windows下发送正常,可是当发布到linux系统时,就不能发送邮件了。报错信息:
connectSmtp(String, String, String)
javax.mail.MessagingException: 500 Error: bad syntax
at com.sun.mail.smtp.SMTPTransport.issueCommand(SMTPTransport.java:1250)
at com.sun.mail.smtp.SMTPTransport.helo(SMTPTransport.java:774)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:316)
at javax.mail.Service.connect(Service.java:255)
at javax.mail.Service.connect(Service.java:134)
at javax.mail.Service.connect(Service.java:86)
at com.sun.mail.smtp.SMTPTransport.connect(SMTPTransport.java:144)
at com.china3z.bean.ConnectMail.connectSmtp(ConnectMail.java:68)
请问什么原因,请高手指点,万分感激。多谢多谢
connectSmtp(String, String, String)
javax.mail.MessagingException: 500 Error: bad syntax
at com.sun.mail.smtp.SMTPTransport.issueCommand(SMTPTransport.java:1250)
at com.sun.mail.smtp.SMTPTransport.helo(SMTPTransport.java:774)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:316)
at javax.mail.Service.connect(Service.java:255)
at javax.mail.Service.connect(Service.java:134)
at javax.mail.Service.connect(Service.java:86)
at com.sun.mail.smtp.SMTPTransport.connect(SMTPTransport.java:144)
at com.china3z.bean.ConnectMail.connectSmtp(ConnectMail.java:68)
请问什么原因,请高手指点,万分感激。多谢多谢
|
邮件系统配置的问题
在linux用邮件软件能否发
在linux用邮件软件能否发
|
楼上正解!