MCPcopy
hub / github.com/jordan-wright/email / ExampleGmail

Function ExampleGmail

email_test.go:606–616  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

604}
605
606func 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
618func ExampleAttach() {
619 e := NewEmail()

Callers

nothing calls this directly

Calls 2

SendMethod · 0.95
NewEmailFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…