阿里云使用springmail发送邮件超时 Connection timed out
原创 2018-01-08 17:11 阅读(1814)次
我在项目里使用spring mail发送邮件,测试环境中(windows)下是正常的,但部署到阿里云linux centos6.8下一直报连接超时:具体代码配置如下:@Service("emailSendService")
public class EMailSendService implements IEMailSendService {
@Resource
public JavaMailSenderImpl mailSender;
@Resource
public SimpleMailMessage mailMessage;
@Resource
...