Skip to content

Commit

Permalink
examples: update transport sample
Browse files Browse the repository at this point in the history
  • Loading branch information
narekhovhannisyan committed Aug 19, 2024
1 parent a8b56bc commit f24a304
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/sending/transport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@ const SENDER_EMAIL = "<SENDER@YOURDOMAIN.COM>";
const RECIPIENT_EMAIL = "<RECIPIENT@EMAIL.COM>";

const transport = Nodemailer.createTransport(MailtrapTransport({
token: TOKEN
token: TOKEN,
}))

// Note: 'sandbox: true' can be passed for making requests to Testing API
transport.sendMail({
text: "Welcome to Mailtrap Sending!",
to: {
Expand Down

0 comments on commit f24a304

Please sign in to comment.