Add: env variable for "From" and "To" fields of email action
This commit is contained in:
@@ -22,8 +22,8 @@ export const server = {
|
||||
|
||||
handler: async (input) => {
|
||||
const mailOptions = {
|
||||
from: `"AU Solutions IT" <${import.meta.env.EMAIL_USER}>`,
|
||||
to: import.meta.env.EMAIL_USER,
|
||||
from: import.meta.env.EMAIL_FROM,
|
||||
to: import.meta.env.EMAIL_TO,
|
||||
subject: `Nueva persona interesada en Naliia: ${input.userName}`,
|
||||
html: emailTemplate
|
||||
.replace("{{userName}}", input.userName)
|
||||
|
||||
Reference in New Issue
Block a user