@dnax/core 0.10.4 → 0.11.0
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/lib/mail.ts +6 -5
- package/package.json +1 -1
package/lib/mail.ts
CHANGED
|
@@ -132,12 +132,13 @@ function send(
|
|
|
132
132
|
...smtp,
|
|
133
133
|
});
|
|
134
134
|
|
|
135
|
+
let from =
|
|
136
|
+
options?.mailOptions?.from ||
|
|
137
|
+
`${Cfg?.email?.fromName || ""} <${Cfg?.email?.fromAddress || ""}>`;
|
|
138
|
+
|
|
135
139
|
var response = await transport.sendMail({
|
|
136
|
-
from:
|
|
137
|
-
|
|
138
|
-
`${options?.config?.fromName || ""} <${
|
|
139
|
-
options?.config?.fromAddress || ""
|
|
140
|
-
}>`,
|
|
140
|
+
from: from,
|
|
141
|
+
|
|
141
142
|
to: options?.mailOptions?.to || undefined,
|
|
142
143
|
subject: options?.mailOptions?.subject || "",
|
|
143
144
|
text: options?.mailOptions?.text || "",
|