I have an open TCP connection and read from it with a for loop like so
for { // tx.Text is of type textproto.Conn // the underlying connection is stored
Ditched swaks, built a small tool to test TLS using Go's own smtp.SendMail:
package main import ( "fmt" "net/smtp" ) func main() { err := smtp.SendMail( "127.0.0.1:2525", nil, "src@test.local", []string{"dst@test.local"}, []byte("Hello! Just testing."), ) if err != nil { panic(err) } }