nodemailer 7.0.0 → 7.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/lib/ses-transport/index.js +3 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## [7.0.1](https://github.com/nodemailer/nodemailer/compare/v7.0.0...v7.0.1) (2025-05-04)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **ses:** Use formatted FromEmailAddress for SES emails ([821cd09](https://github.com/nodemailer/nodemailer/commit/821cd09002f16c20369cc728b9414c7eb99e4113))
|
|
9
|
+
|
|
3
10
|
## [7.0.0](https://github.com/nodemailer/nodemailer/compare/v6.10.1...v7.0.0) (2025-05-03)
|
|
4
11
|
|
|
5
12
|
|
|
@@ -50,6 +50,8 @@ class SESTransport extends EventEmitter {
|
|
|
50
50
|
pending: true
|
|
51
51
|
};
|
|
52
52
|
|
|
53
|
+
let fromHeader = mail.message._headers.find(header => /^from$/i.test(header.key));
|
|
54
|
+
|
|
53
55
|
let envelope = mail.data.envelope || mail.message.getEnvelope();
|
|
54
56
|
let messageId = mail.message.messageId();
|
|
55
57
|
|
|
@@ -124,7 +126,7 @@ class SESTransport extends EventEmitter {
|
|
|
124
126
|
Data: raw // required
|
|
125
127
|
}
|
|
126
128
|
},
|
|
127
|
-
FromEmailAddress: envelope.from,
|
|
129
|
+
FromEmailAddress: fromHeader ? fromHeader.value : envelope.from,
|
|
128
130
|
Destination: {
|
|
129
131
|
ToAddresses: envelope.to
|
|
130
132
|
}
|