From 30169acc42e795e5d35ce901c8387950b103dfd9 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 3 Nov 2021 22:25:24 +0100 Subject: [PATCH] readme: make it clearer Client.SendMail doesn't use TLS --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3241190..c6e0791 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ import ( ) func main() { - // Set up authentication information. + // Setup authentication information. auth := sasl.NewPlainClient("", "user@example.com", "password") // Connect to the server, authenticate, set the sender and recipient, @@ -60,8 +60,8 @@ import ( ) func main() { - // Setup connection to mail server, return Client instance - c, err := smtp.Dial("mail.example.com:25") + // Setup an unencrypted connection to a local mail server. + c, err := smtp.Dial("localhost:25") if err != nil { return err }