Closed ktwbc closed 3 years ago
This seems like a Nodemailer issue, not an issue with this package. Please file it over there.
You should probably just put those default headers in. Which is documented here: https://github.com/forwardemail/email-templates#custom-default-message-options.
const email = new Email({
message: {
from: `Notification <notifications@example.com>`,
headers: { ... } // <-- ADD THEM HERE
},
// ...
cc @ktwbc
Attempting to use the SES Transport with SourceArn/FromArn for cross-account usage. Using them in the new Email() object will not error but they are ignored.
The email will show sending but because the SourceArn and FromArn are ignored, the email isn't actually sent. If I remove those lines and instead manually put them in the headers, such as:
Then the emails are sent and received correctly.