Skip to content

Commit

Permalink
examples: update bulk sending example
Browse files Browse the repository at this point in the history
  • Loading branch information
narekhovhannisyan committed Aug 19, 2024
1 parent 13fc15d commit 10046b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/bulk/send-mail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ const TOKEN = "<YOUR-TOKEN-HERE>";
const SENDER_EMAIL = "<SENDER@YOURDOMAIN.COM>";
const RECIPIENT_EMAIL = "<RECIPIENT@EMAIL.COM>";

const client = new MailtrapClient({ token: TOKEN });
const client = new MailtrapClient({ token: TOKEN, bulk: true });

client.bulk.send({
client.send({
from: { name: "Mailtrap Test", email: SENDER_EMAIL },
to: [{ email: RECIPIENT_EMAIL }],
subject: "Hello from Mailtrap!",
Expand Down

0 comments on commit 10046b8

Please sign in to comment.