Skip to content

Instantly share code, notes, and snippets.

@jhillyerd
Created July 11, 2021 17:40
Show Gist options
  • Save jhillyerd/5c6c29ba72bcddfc6a15e1742990dccd to your computer and use it in GitHub Desktop.
Save jhillyerd/5c6c29ba72bcddfc6a15e1742990dccd to your computer and use it in GitHub Desktop.
HELO error repro
package main
import (
"net"
"net/smtp"
)
func main() {
conn, err := net.Dial("tcp", "localhost:2500")
if err != nil {
panic(err)
}
c, err := smtp.NewClient(conn, "localhost:25")
if err != nil {
panic(err)
}
err = c.Hello("swc") // err is not nil
if err != nil {
panic(err)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment