| 604 | } |
| 605 | |
| 606 | func ExampleGmail() { |
| 607 | e := NewEmail() |
| 608 | e.From = "Jordan Wright <test@gmail.com>" |
| 609 | e.To = []string{"test@example.com"} |
| 610 | e.Bcc = []string{"test_bcc@example.com"} |
| 611 | e.Cc = []string{"test_cc@example.com"} |
| 612 | e.Subject = "Awesome Subject" |
| 613 | e.Text = []byte("Text Body is, of course, supported!\n") |
| 614 | e.HTML = []byte("<h1>Fancy Html is supported, too!</h1>\n") |
| 615 | e.Send("smtp.gmail.com:587", smtp.PlainAuth("", e.From, "password123", "smtp.gmail.com")) |
| 616 | } |
| 617 | |
| 618 | func ExampleAttach() { |
| 619 | e := NewEmail() |