Skip to content

Commit

Permalink
fix(mailersend.js): add support for replyTo and cc to be able to send…
Browse files Browse the repository at this point in the history
… emails with a replyTo and/or CC

feat(mailersend.js): add support for replyTo and cc to be able to send emails with a replyTo and/or CC
  • Loading branch information
enricodeleo committed Nov 9, 2024
1 parent c77de8c commit f263e68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/providers/email/mailersend.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ var EmailMailerSendProvider = exports["default"] = /*#__PURE__*/function () {
html: html,
text: text
}, replyTo ? {
reply_to: [{
reply_to: {
email: replyTo
}]
}
} : {}), cc && cc.length ? {
cc: cc.map(function (email) {
var parsed = (0, _parseEmailString.parseEmailString)(email);
Expand Down
2 changes: 1 addition & 1 deletion src/providers/email/mailersend.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default class EmailMailerSendProvider {
subject,
html,
text,
...(replyTo ? { reply_to: [{ email: replyTo }] } : {}),
...(replyTo ? { reply_to: { email: replyTo } } : {}),
...(cc && cc.length ? {
cc: cc.map(email => {
const parsed = parseEmailString(email);
Expand Down

0 comments on commit f263e68

Please sign in to comment.