From c12f93e471f7b8b7e2aec4db8c01c97b61031996 Mon Sep 17 00:00:00 2001 From: Vilen Topchii <32271530+vtopc@users.noreply.github.com> Date: Sun, 15 Dec 2024 20:04:30 +0200 Subject: [PATCH] fixed examples in README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f78c9fe3..f5407204 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ func main() { recipient := "recipient@example.com" // The message object allows you to add attachments and Bcc recipients - message := mailgun.NewMessage(sender, subject, body, recipient) + message := mailgun.NewMessage(yourDomain, sender, subject, body, recipient) ctx, cancel := context.WithTimeout(context.Background(), time.Second*10) defer cancel() @@ -290,7 +290,7 @@ func main() { subject := "HTML email!" recipient := "recipient@example.com" - message := mailgun.NewMessage(sender, subject, "", recipient) + message := mailgun.NewMessage(yourDomain, sender, subject, "", recipient) body := ` @@ -351,7 +351,7 @@ func main() { recipient := "recipient@example.com" // The message object allows you to add attachments and Bcc recipients - message := mailgun.NewMessage(sender, subject, body, recipient) + message := mailgun.NewMessage(yourDomain, sender, subject, body, recipient) message.SetTemplate("passwordReset") err := message.AddTemplateVariable("passwordResetLink", "some link to your site unique to your user") if err != nil {