解决javax.mail.MessagingException: Could not connect to SMTP host: smtp.exmail.qq.com, port: 25;

邮件的服务器设置错误。

从数据库获取的邮件服务器的数据不对,用户设置的就是错误的。

删除原来的服务器配置,增加一条新的记录喽。

delete from BI_CONFIG_RULE_MAILSERVER cc where cc.guid='59A34943CB544226AC10912DE94B3374';
commit;

insert into BI_CONFIG_RULE_MAILSERVER (GUID, USERNAME, PASSWORD, SMTP, CREATEUSERGUID, CREATETIME, UPDATEUSERGUID, UPDATETIME, ISSHOWWARN, FROMADDRESS)
values ('59A34943CB544226AC10912DE94B3374', '[email protected]', '密码就不给看了', 'smtp.263.net', 'AFA15A50A37E4E5791615218E1A8E463', to_date('24-09-2012 14:48:32', 'dd-mm-yyyy hh24:mi:ss'), 'ADAA20C87CAB450ABAC48DBBD00D863A', to_date('04-11-2016 11:12:52', 'dd-mm-yyyy hh24:mi:ss'), 'Y', '[email protected]');

 

你可能感兴趣的:(解决javax.mail.MessagingException: Could not connect to SMTP host: smtp.exmail.qq.com, port: 25;)