File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
feat: add support for OAuth2 authentication
4
4
5
+ fix: default replyTo issue introduced in 0.1.35
6
+
5
7
## Version 0.1.36
6
8
7
9
feat - move to Node.js 20 runtimes
Original file line number Diff line number Diff line change @@ -269,13 +269,15 @@ async function sendWithSendGrid(payload: QueuePayload) {
269
269
} ) ) ;
270
270
} ;
271
271
272
+ const replyTo = { email : payload . replyTo || config . defaultReplyTo } ;
273
+
272
274
// Build the message object for SendGrid
273
275
const msg : sgMail . MailDataRequired = {
274
276
to : formatEmails ( payload . to ) ,
275
277
cc : formatEmails ( payload . cc ) ,
276
278
bcc : formatEmails ( payload . bcc ) ,
277
279
from : { email : payload . from || config . defaultFrom } ,
278
- replyTo : { email : payload . replyTo || config . defaultReplyTo } ,
280
+ replyTo : replyTo . email ? replyTo : undefined ,
279
281
subject : payload . message ?. subject ,
280
282
text :
281
283
typeof payload . message ?. text === "string"
You can’t perform that action at this time.
0 commit comments