javamail诡异的504异常
来源:互联网 发布:excel数据丢失 编辑:程序博客网 时间:2024/05/23 15:42
DEBUG: setDebug: JavaMail version 1.4.1
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth true
DEBUG SMTP: trying to connect to host "smtp.XX.com", port 25, isSSL false
220 ent-as1 smtp
DEBUG SMTP: connected to host "smtp.XX.com", port: 25
EHLO
504 this command is not implemented.
HELO
504 this command is not implemented.
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth true
DEBUG SMTP: trying to connect to host "smtp.XX.com", port 25, isSSL false
220 ent-as1 smtp
DEBUG SMTP: connected to host "smtp.XX.com", port: 25
EHLO
504 this command is not implemented.
HELO
504 this command is not implemented.
邮件发送错误:504 this command is not implemented.
报错信息如上
在命令EHLO后面没有主机名
查看hostname
# hostname
XX-mail
查看host文件
# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain
将hostname "XX-mail" 写入到hosts里 邮件正常 发送
# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain XX-mail
参考文章http://blog.csdn.net/james05y/article/details/1624629#comments
阅读全文
0 0
- javamail诡异的504异常
- mybatis诡异的异常!!!时好时坏!!!
- Hibernate 的一个诡异的异常
- 诡异的java.lang.IllegalMonitorStateException异常
- JavaMail发送邮件AuthenticationFailedException异常的解决方案
- javamail实现邮箱验证的异常
- 范型&&诡异异常
- 关于LINQ语句的一个诡异的空异常
- oracle中存储过程、函数的诡异异常(错误)
- lua退出时内存删除的诡异异常及处理
- 诡异的异常SEVERE: Error creating form bean of class
- 启动maven nexus3时遇到的"诡异"异常
- iframe结合ajax,诡异的多次访问方法异常
- 诡异的Uncaught SyntaxError: missing ) after argument list异常
- 好的事情诡异诡异诡异诡异英语
- javamail发邮件异常
- Spring整合javamail异常:
- 用javamail api发送邮件时的异常
- SpringMVC报404的一种可能
- maven新增tomcat插件
- JPA查询出现死循环
- OKHTTP源码分析(二)同步方法以及拦截器链
- pandas 读取csv Initializing from file failed
- javamail诡异的504异常
- centos7开通ssh服务
- bootstarp-table表格中嵌套多个BUTON按钮实现
- 关于如何将Eclipse中@author进行修改的解决方法
- 看完《第一行代码》再看什么书可以进一步提高?
- Caused by: java.lang.ClassNotFoundException: javassist.util.proxy.MethodFilter
- Java 内部类
- 【经验】Linux安装redis服务
- vuex—数据管理器