email_test.go 335 B

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