MCPcopy Create free account
hub / github.com/go-gomail/gomail / ExampleMessage_AddAlternative

Function ExampleMessage_AddAlternative

example_test.go:154–157  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

152}
153
154func ExampleMessage_AddAlternative() {
155 m.SetBody("text/plain", "Hello!")
156 m.AddAlternative("text/html", "<p>Hello!</p>")
157}
158
159func ExampleMessage_AddAlternativeWriter() {
160 t := template.Must(template.New("example").Parse("Hello {{.}}!"))

Callers

nothing calls this directly

Calls 2

SetBodyMethod · 0.80
AddAlternativeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…