Created
July 11, 2021 17:40
-
-
Save jhillyerd/5c6c29ba72bcddfc6a15e1742990dccd to your computer and use it in GitHub Desktop.
HELO error repro
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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