Bugs in settings fixed, profile added
This commit is contained in:
@@ -42,3 +42,16 @@ export const sendAccountActivationEmail = async (email, activationLink, username
|
||||
|
||||
await transporter.sendMail(mailOptions);
|
||||
};
|
||||
|
||||
export const sendAnswerEmail = async (toEmail, answer, language) => {
|
||||
i18n.setLocale(language);
|
||||
const mailOptions = {
|
||||
from: process.env.SMTP_FROM,
|
||||
to: toEmail,
|
||||
subject: 'yourPart',
|
||||
text: answer,
|
||||
html: `<p>${ answer }</p>`
|
||||
};
|
||||
|
||||
await transporter.sendMail(mailOptions);
|
||||
};
|
||||
Reference in New Issue
Block a user