email_test.go 380 B

12345678910111213141516
  1. package email
  2. import (
  3. "testing"
  4. )
  5. func TestEmail(*testing.T) {
  6. e := NewEmail()
  7. e.From = "Jordan Wright <test@example.com>"
  8. e.To = []string{"test@example.com"}
  9. e.Bcc = []string{"test_bcc@example.com"}
  10. e.Cc = []string{"test_cc@example.com"}
  11. e.Subject = "Awesome Subject"
  12. e.Text = "Text Body is, of course, supported!"
  13. e.Html = "<h1>Fancy Html is supported, too!</h1>"
  14. }