diff options
-rw-r--r-- | cmd/ponzu/vendor/github.com/nilslice/email/README.md | 2 | ||||
-rw-r--r-- | cmd/ponzu/vendor/github.com/nilslice/email/email.go | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/cmd/ponzu/vendor/github.com/nilslice/email/README.md b/cmd/ponzu/vendor/github.com/nilslice/email/README.md index 323004c..190c61f 100644 --- a/cmd/ponzu/vendor/github.com/nilslice/email/README.md +++ b/cmd/ponzu/vendor/github.com/nilslice/email/README.md @@ -19,7 +19,7 @@ import ( func main() { msg := email.Message{ To: "you@server.name", // do not add < > or name in quotes - From: "Name <me@server.name>", // ok to format in From field + From: "me@server.name", // do not add < > or name in quotes Subject: "A simple email", Body: "Plain text email body. HTML not yet supported, but send a PR!", } diff --git a/cmd/ponzu/vendor/github.com/nilslice/email/email.go b/cmd/ponzu/vendor/github.com/nilslice/email/email.go index 5826b4d..15f0a49 100644 --- a/cmd/ponzu/vendor/github.com/nilslice/email/email.go +++ b/cmd/ponzu/vendor/github.com/nilslice/email/email.go @@ -87,14 +87,14 @@ func send(m Message, c *smtp.Client) error { } if m.From != "" { - _, err = msg.Write([]byte("From: " + m.From + " <" + m.From + ">\r\n")) + _, err = msg.Write([]byte("From: <" + m.From + ">\r\n")) if err != nil { return err } } if m.To != "" { - _, err = msg.Write([]byte("To: " + m.To + " <" + m.To + ">\r\n")) + _, err = msg.Write([]byte("To: <" + m.To + ">\r\n")) if err != nil { return err } |