Skip to content
Snippets Groups Projects
Commit e67367dc authored by Etienne LOUPIAS's avatar Etienne LOUPIAS
Browse files

feat(mail): add param for mail sender (for smtp server change)

parent 3e702e16
No related branches found
No related tags found
1 merge request!420V3.2.0
......@@ -18,6 +18,7 @@ ME_PORT=<mongo express port>
# External API
MAIL_URL=<SEN API url>
MAIL_TOKEN=<SEN API token>
MAIL_FROM=<MAIL_FROM>
MAIL_CONTACT=<MAIL_CONTACT>
MAIL_SOSTECH=<MAIL_SOSTECH>
# Ghost
......
......@@ -18,6 +18,7 @@ services:
SALT: ${SALT}
MAIL_URL: ${MAIL_URL}
MAIL_TOKEN: ${MAIL_TOKEN}
MAIL_FROM: ${MAIL_FROM}
MAIL_SOSTECH: ${MAIL_SOSTECH}
MAIL_CONTACT: ${MAIL_CONTACT}
NODE_ENV: ${NODE_ENV}
......
......@@ -16,7 +16,7 @@ export class MailerService {
const emailsToSend = typeof to === 'string' ? [{ email: to }] : to;
const formData = new FormData();
const data = JSON.stringify({
from_email: this.config.from,
from_email: process.env.MAIL_FROM,
from_name: this.config.from_name,
to: emailsToSend,
reply_to: 'inclusionnumerique@grandlyon.com',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment