mirror of
https://github.com/opelly27/streetmerchant.git
synced 2026-05-20 07:37:39 +00:00
feat(notification): add to field for email (#327)
This commit is contained in:
@@ -67,6 +67,7 @@ const notifications = {
|
||||
},
|
||||
email: {
|
||||
password: envOrString(process.env.EMAIL_PASSWORD),
|
||||
to: envOrString(process.env.EMAIL_TO, envOrString(process.env.EMAIL_USERNAME)),
|
||||
username: envOrString(process.env.EMAIL_USERNAME)
|
||||
},
|
||||
phone: {
|
||||
|
||||
@@ -25,7 +25,7 @@ export function sendEmail(link: Link, store: Store) {
|
||||
from: email.username,
|
||||
subject: Print.inStock(link, store),
|
||||
text: link.cartUrl ? link.cartUrl : link.url,
|
||||
to: email.username
|
||||
to: email.to
|
||||
};
|
||||
|
||||
transporter.sendMail(mailOptions, error => {
|
||||
|
||||
Reference in New Issue
Block a user