Skip to content

Commit 089b7f5

Browse files
committed
examples: Add replyTo field to nodemailer transport example
1 parent 89a26f0 commit 089b7f5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/sending/transport.ts

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { MailtrapTransport } from "mailtrap"
1111
const TOKEN = "<YOUR-TOKEN-HERE>"
1212
const SENDER_EMAIL = "<[email protected]>";
1313
const RECIPIENT_EMAIL = "<[email protected]>";
14+
const REPLY_TO_EMAIL = "<[email protected]>";
1415

1516
const transport = Nodemailer.createTransport(MailtrapTransport({
1617
token: TOKEN,
@@ -26,6 +27,7 @@ transport.sendMail({
2627
address: SENDER_EMAIL,
2728
name: "Mailtrap Test"
2829
},
30+
replyTo: REPLY_TO_EMAIL,
2931
subject: "Hello from Mailtrap!",
3032
html: `
3133
<!doctype html>

0 commit comments

Comments
 (0)