feat: send mail from config-definable email

This commit is contained in:
ash 2023-02-26 21:20:50 +00:00 committed by GitHub
parent 3954d7588b
commit 07d28c1979
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,7 +13,7 @@ if (!disabledFeatures.email) {
/**
@param {Object} options
@param {String} options.to The address to send the email to
@param {String} options.to The address of the recipient
@param {String} options.subject The subject of the email
@param {String} options.username The username of the user (shown in the greeting)
@ -51,6 +51,7 @@ async function sendMail(options) {
}
await transporter.sendMail({
from: config.email.from,
to,
subject,
text,