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