-
Notifications
You must be signed in to change notification settings - Fork 18k
net/smtp: SendMail blocked at smtp.Client.StartTLS #67867
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
Comments
This may be a long-shot but CC @bradfitz via https://dev.golang.org/owners. Maybe also CC @neild? Not sure. |
Similar Issues
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.) |
This program works fine for me (prints StartTLS worked) using a cloud system that can dial port 25 (my home internet gets blocked by my ISP):
Does it work for you? |
Timed out in state WaitingForInfo. Closing. (I am just a bot, though. Please speak up if this is a mistake or you have the requested information.) |
|
Go version
go version go1.20.13 windows/386
Output of
go env
in your module/workspace:What did you do?
I send mail with net/smtp, some smtp server seems incompatible, my code:
func main() {
from := "[email protected]"
to := []string{"[email protected]"}
auth := smtp.PlainAuth("", from, "wrong_pswd", "smtp.exmail.qq.com:25")
fmt.Println("pre sendMail")
fmt.Println(smtp.SendMail("smtp.exmail.qq.com:25", auth, from, to, []byte("hello")))
fmt.Println("post sendMail")
}
What did you see happen?
smtp.SendMail blocked (at smtp.Client.StartTLS) for about 2 minutes, until socket timeout
What did you expect to see?
STMP protocol can be run normally, failed or succeeded faithfully but not hang
The text was updated successfully, but these errors were encountered: