Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于邮件无法发送的问题 #22

Open
Allwayz opened this issue Feb 19, 2020 · 0 comments
Open

关于邮件无法发送的问题 #22

Allwayz opened this issue Feb 19, 2020 · 0 comments

Comments

@Allwayz
Copy link

Allwayz commented Feb 19, 2020

我在测试的时候是可以发出去邮件的,可是在实际调用中却出现了拒绝链接 的bug

2020-02-19 20:28:53.132 ERROR 1832 --- [nio-8990-exec-3] o.a.c.c.C.[.[.[/].[dispatcherServlet]    : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is io.github.biezhi.ome.SendMailException: com.sun.mail.util.MailConnectException: Couldn't connect to host, port: localhost, 25; timeout -1;
  nested exception is:
	java.net.ConnectException: Connection refused (Connection refused)] with root cause

java.net.ConnectException: Connection refused (Connection refused)

是不是因为配置读不到而不能把send方法写成工具类去别的地方调用?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant