by everton.marques:
What steps will reproduce the problem?
1. See sample program at http://play.golang.org/p/ARHzvn2VHz
2. Since play.golang.org can't open outgoing SMTP, save the program as: mail.go
3. Then run: go run mail.go
What is the expected output?
Full smtp.Sendmail multiline error message.
What do you see instead?
The smtp.SendMail error message is truncated. See below.
C:\>go run mail.go
2013/06/13 18:20:51 auth=[] password=[] sender=[] recipient=[]
2013/06/13 18:20:56 sendSmtp: failure: ["530 5.5.1 Authentication Required. Learn
more at"]
2013/06/13 18:20:56 530 5.5.1 Authentication Required. Learn more at
exit status 1
Which compiler are you using (5g, 6g, 8g, gccgo)?
Don't know. Default. I am compiling with "go install". I run the mail.go test
above with "go run".
Which operating system are you using?
Windows 7 on 64-bit
Which version are you using? (run 'go version')
go version go1.1 windows/amd64
Please provide any additional information below.
The issue has been reported here:
http://stackoverflow.com/questions/14734999/golang-read-multiline-error-response-from-smtp-sendmail
And here:
https://groups.google.com/d/msg/golang-nuts/e-B71UXjMOI/kz-gXwlA2WYJ
by everton.marques: