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
net/smtp: Add support for SMTPUTF8 extension (rfc6531) #19860
Comments
See the package doc for net/smtp which says:
Have you verified there isn't a better smtp client implementation elsewhere? Maybe you can own one? |
Given that other proposals for net/smtp are now being considered (at least #40034), perhaps this is worth another look? I've forked net/smtp to be able to have this functionality, but I'd really rather not maintain that. |
How big is the change? |
Very small. |
Sure, send it, we can take a look. Thanks. |
Change https://golang.org/cl/247257 mentions this issue: |
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.7.5 darwin/amd64
What operating system and processor architecture are you using (
go env
)?GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/maxim/workspace/goworld"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/vr/lfwfw4nn5pz_w5203lt5_8140000gn/T/go-build690204281=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
What did you do?
Try sending an email to an address that contains UTF-8 characters.
What did you expect to see?
An email should be successfully delivered.
What did you see instead?
Delivery fails. The exact SMTP status code and message depend on the target server. E.g. gmail returns:
555 5.5.2 Syntax error. u200si18377193qka.138 - gsmtp
Even though gmail SMTP server advertise SMTPUTF8 in their EHLO response:
It expects to see SMTPUTF8 parameter in MAIL command, as per rfc6531:
The text was updated successfully, but these errors were encountered: