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

@ -1,4 +1,10 @@
#!/bin/bash
cd /var/www/html/ninegate
php bin/console swiftmailer:spool:send --message-limit=100 --env=prod
ninegate_activer_localmail=$(CreoleGet ninegate_activer_localmail non)
if [[ "$ninegate_activer_localmail" = 'oui' ]]
then
php bin/console swiftmailer:spool:send --message-limit=100 --env=prod --transport swiftmailer.mailer.sendmail.transport
else
php bin/console swiftmailer:spool:send --message-limit=100 --env=prod
fi