diff options
author | Christopher Speller <crspeller@gmail.com> | 2017-08-17 17:19:06 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-17 17:19:06 -0700 |
commit | 96eab1202717e073782ec399a4e0820cae15b1bb (patch) | |
tree | 011012982be971c7e9ef91466f026bc0956ac9a2 /vendor/gopkg.in/gomail.v2/example_test.go | |
parent | 2c895ee66eed626721135acfcc48254c6e3f3b29 (diff) | |
download | chat-96eab1202717e073782ec399a4e0820cae15b1bb.tar.gz chat-96eab1202717e073782ec399a4e0820cae15b1bb.tar.bz2 chat-96eab1202717e073782ec399a4e0820cae15b1bb.zip |
Updating server dependancies. (#7246)
Diffstat (limited to 'vendor/gopkg.in/gomail.v2/example_test.go')
-rw-r--r-- | vendor/gopkg.in/gomail.v2/example_test.go | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/vendor/gopkg.in/gomail.v2/example_test.go b/vendor/gopkg.in/gomail.v2/example_test.go index 90008abe8..8d9c6c293 100644 --- a/vendor/gopkg.in/gomail.v2/example_test.go +++ b/vendor/gopkg.in/gomail.v2/example_test.go @@ -19,7 +19,7 @@ func Example() { m.SetBody("text/html", "Hello <b>Bob</b> and <i>Cora</i>!") m.Attach("/home/Alex/lolcat.jpg") - d := gomail.NewDialer("smtp.example.com", 587, "user", "123456") + d := gomail.NewPlainDialer("smtp.example.com", 587, "user", "123456") // Send the email to Bob, Cora and Dan. if err := d.DialAndSend(m); err != nil { @@ -32,7 +32,7 @@ func Example_daemon() { ch := make(chan *gomail.Message) go func() { - d := gomail.NewDialer("smtp.example.com", 587, "user", "123456") + d := gomail.NewPlainDialer("smtp.example.com", 587, "user", "123456") var s gomail.SendCloser var err error @@ -79,7 +79,7 @@ func Example_newsletter() { Address string } - d := gomail.NewDialer("smtp.example.com", 587, "user", "123456") + d := gomail.NewPlainDialer("smtp.example.com", 587, "user", "123456") s, err := d.Dial() if err != nil { panic(err) @@ -151,10 +151,6 @@ func ExampleSetHeader() { m.Attach("foo.jpg", gomail.SetHeader(h)) } -func ExampleRename() { - m.Attach("/tmp/0000146.jpg", gomail.Rename("picture.jpg")) -} - func ExampleMessage_AddAlternative() { m.SetBody("text/plain", "Hello!") m.AddAlternative("text/html", "<p>Hello!</p>") @@ -217,7 +213,3 @@ func ExampleSetCharset() { func ExampleSetEncoding() { m = gomail.NewMessage(gomail.SetEncoding(gomail.Base64)) } - -func ExampleSetPartEncoding() { - m.SetBody("text/plain", "Hello!", gomail.SetPartEncoding(gomail.Unencoded)) -} |