diff --git a/content/en/examples/bulk-mailer.md b/content/en/examples/bulk-mailer.md index 8c15b9f..769a92b 100644 --- a/content/en/examples/bulk-mailer.md +++ b/content/en/examples/bulk-mailer.md @@ -92,11 +92,11 @@ func main() { m.SetDate() m.SetBulk() m.Subject(fmt.Sprintf("%s, we have a great offer for you!", u.Firstname)) - if err := m.SetBodyHTMLTemplate(htpl, u); err != nil { - log.Fatalf("failed to set HTML template as HTML body: %s", err) + if err := m.SetBodyTextTemplate(ttpl, u); err != nil { + log.Fatalf("failed to add text template to mail body: %s", err) } - if err := m.AddAlternativeTextTemplate(ttpl, u); err != nil { - log.Fatalf("failed to set text template as alternative body: %s", err) + if err := m.AddAlternativeHTMLTemplate(htpl, u); err != nil { + log.Fatalf("failed to add HTML template to mail body: %s", err) } ms = append(ms, m)