summaryrefslogtreecommitdiffstats
path: root/vendor/gopkg.in/gomail.v2/example_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/gopkg.in/gomail.v2/example_test.go')
-rw-r--r--vendor/gopkg.in/gomail.v2/example_test.go14
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))
-}