GZTimeWalker / GZCTF

The GZ::CTF project, an open source CTF platform.
https://docs.ctf.gzti.me/
GNU Affero General Public License v3.0
791 stars 92 forks source link

Bug: failure sending mail with port 465 #33

Closed Konano closed 1 year ago

Konano commented 1 year ago
GZCTF    | [22-09-08 13:19:22.439 INF] AccountController: 发送用户密码重置邮件。 #Pending <>@::ffff:
GZCTF    | [22-09-08 13:21:36.055 ERR] MailSender: 邮件发送遇到问题
GZCTF    | System.Net.Mail.SmtpException: Failure sending mail.
GZCTF    |  ---> System.Net.Sockets.SocketException (110): Connection timed out
GZCTF    |    at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
GZCTF    |    at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
GZCTF    |    at System.Threading.Tasks.ValueTask.ValueTaskSourceAsTask.<>c.<.cctor>b__4_0(Object state)
GZCTF    | --- End of stack trace from previous location ---
GZCTF    |    at System.Threading.Tasks.TaskToApm.End(IAsyncResult asyncResult)
GZCTF    |    at System.Net.Sockets.TcpClient.EndConnect(IAsyncResult asyncResult)
GZCTF    |    at System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult.InitializeConnectionCallback(IAsyncResult result)
GZCTF    | --- End of stack trace from previous location ---
GZCTF    |    at System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult.End(IAsyncResult result)
GZCTF    |    at System.Net.Mail.SmtpClient.ConnectCallback(IAsyncResult result)
GZCTF    |    --- End of inner exception stack trace ---
GZCTF    |    at CTFServer.Services.MailSender.SendEmailAsync(String subject, String content, String to) in /home/runner/work/GZCTF/GZCTF/GZCTF/Services/MailSender.cs:line 56
GZCTF    | [22-09-08 13:21:36.057 INF] MailSender: 邮件发送失败! #Fail <System>
GZTimeWalker commented 1 year ago

will be fix in 23e6b0