pouvoir utiliser le serveur d'envoi de mail local au scribe (fixes #26)

This commit is contained in:
2020-01-13 15:47:35 +01:00
parent 35b61480a2
commit 31fbeaf621
6 changed files with 43 additions and 8 deletions

View File

@ -30,6 +30,12 @@ parameters:
database_name: ninegate
database_user: ninegate
database_password: "changeme"
%if %%getVar("ninegate_activer_localmail", 'non') == "oui"
mailer_transport: sendmail
mailer_host: '/usr/sbin/sendmail'
mailer_user: ~
mailer_password: ~
%else
mailer_transport: smtp
%if %%is_defined("ninegate_smtphost")
mailer_host: '%%ninegate_smtphost'
@ -39,5 +45,6 @@ parameters:
mailer_host: 'localhost'
mailer_user: ''
mailer_password: ''
%end if
%end if
secret: ThisTokenIsNotSoSecretChangeIt

View File

@ -408,7 +408,7 @@ parameters:
mailer_port: '2525'
mailer_encryption: null
mailer_authmode: null
noreply: %%system_mail_to
noreply: %%ninegate_noreply
%end if
# Doctrine Configuration