summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-12-02 16:40:51 -0800
committerSteve Manuel <nilslice@gmail.com>2016-12-02 16:40:51 -0800
commit33e66298b89d271314d5b7e21fb998d417121b13 (patch)
tree7cc1c5e47c35331a39982c2d988f36ecebb6de58
parent0c00f0025bcd15005c37df79309d33dc481f8d5e (diff)
additional update to nilslice/email dep
-rw-r--r--cmd/ponzu/vendor/github.com/nilslice/email/README.md2
-rw-r--r--cmd/ponzu/vendor/github.com/nilslice/email/email.go4
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
}