Skip to content
Snippets Groups Projects
Verified Commit 28f7015a authored by Giovannoni Laurent's avatar Giovannoni Laurent
Browse files

prepare notif and sendmail config

parent cc8ec78f
Branches
Tags
No related merge requests found
...@@ -3,11 +3,11 @@ ...@@ -3,11 +3,11 @@
<!-- le nom du fichier doit etre config.xml ou config_{custom_id}.xml --> <!-- le nom du fichier doit etre config.xml ou config_{custom_id}.xml -->
<CONFIG> <CONFIG>
<Lang>fr</Lang> <!-- fr, en--> <Lang>fr</Lang> <!-- fr, en-->
<MaarchDirectory>/var/www/MaarchCourrier/</MaarchDirectory> <MaarchDirectory>/var/www/html/MaarchCourrier/</MaarchDirectory>
<customID></customID> <customID></customID>
<MaarchUrl>http://localhost/maarch/</MaarchUrl> <MaarchUrl>http://preview.maarchcourrier.com</MaarchUrl>
<MaarchApps>maarch_entreprise</MaarchApps> <MaarchApps>maarch_entreprise</MaarchApps>
<TmpDirectory>/var/www/MaarchCourrier/modules/notifications/batch/tmp/</TmpDirectory> <TmpDirectory>/var/www/html/MaarchCourrier/modules/notifications/batch/tmp/</TmpDirectory>
<debugmode> <debugmode>
<dontflag_mail>true</dontflag_mail> <dontflag_mail>true</dontflag_mail>
<verbose_mode>false</verbose_mode> <verbose_mode>false</verbose_mode>
...@@ -21,14 +21,14 @@ ...@@ -21,14 +21,14 @@
<Table>res_letterbox</Table> <Table>res_letterbox</Table>
<View>res_view_letterbox</View> <View>res_view_letterbox</View>
<Adr>adr_letterbox</Adr> <Adr>adr_letterbox</Adr>
<DoctypeExt>mlb_doctype_ext</DoctypeExt> <DoctypeExt>mlb_doctype_ext</DoctypeExt>
<Extension>mlb_coll_ext</Extension> <Extension>mlb_coll_ext</Extension>
</COLLECTION> </COLLECTION>
<CONFIG_BASE> <CONFIG_BASE>
<databaseserver>127.0.0.1</databaseserver> <databaseserver>127.0.0.1</databaseserver>
<databaseserverport>5432</databaseserverport> <databaseserverport>5432</databaseserverport>
<databasetype>POSTGRESQL</databasetype> <databasetype>POSTGRESQL</databasetype>
<databasename>maarchcourrier</databasename> <databasename>MaarchCourrier</databasename>
<databaseuser>maarch</databaseuser> <databaseuser>maarch</databaseuser>
<databasepassword>maarch</databasepassword> <databasepassword>maarch</databasepassword>
</CONFIG_BASE> </CONFIG_BASE>
...@@ -36,21 +36,21 @@ ...@@ -36,21 +36,21 @@
<path_to_mailer>/apps/maarch_entreprise/tools/mails/htmlMimeMail.php</path_to_mailer> <path_to_mailer>/apps/maarch_entreprise/tools/mails/htmlMimeMail.php</path_to_mailer>
<path_to_phpmailer>PHPMailer_v5.1</path_to_phpmailer> <path_to_phpmailer>PHPMailer_v5.1</path_to_phpmailer>
<type>smtp</type><!-- mail (default), smtp, sendmail, qmail --> <type>smtp</type><!-- mail (default), smtp, sendmail, qmail -->
<smtp_host>smtp.yourdomain.com</smtp_host><!-- smtp1.example.com:25;smtp2.example.com --> <smtp_host>smtp.gmail.com</smtp_host><!-- smtp1.example.com:25;smtp2.example.com -->
<smtp_port>25</smtp_port><!-- smtp1.example.com:25;smtp2.example.com --> <smtp_port>465</smtp_port><!-- smtp1.example.com:25;smtp2.example.com -->
<smtp_user>notif@yourdomain.com</smtp_user> <smtp_user>notifications.maarch@gmail.com</smtp_user>
<smtp_password></smtp_password> <smtp_password>$Maarch1234*</smtp_password>
<smtp_auth>true</smtp_auth> <smtp_auth>true</smtp_auth>
<smtp_secure>tls</smtp_secure><!-- tls ou ssl --> <smtp_secure>ssl</smtp_secure><!-- tls ou ssl -->
<charset>utf-8</charset><!-- Default : iso-8859-1 --> <charset>utf-8</charset><!-- Default : iso-8859-1 -->
<domains></domains><!-- Rewrite Recipient with config->adminmail if mailfrom and mailto is out of the domains --> <domains></domains><!-- Rewrite Recipient with config->adminmail if mailfrom and mailto is out of the domains -->
<x-mailer></x-mailer><!-- Rewrite X-Mailer header, default : PHP/[phpversion] --> <x-mailer></x-mailer><!-- Rewrite X-Mailer header, default : PHP/[phpversion] -->
<mailfrom>notifications@maarch.fr</mailfrom> <mailfrom>notifications.maarch@gmail.com</mailfrom>
</MAILER> </MAILER>
<LOG4PHP> <LOG4PHP>
<enabled>true</enabled> <enabled>true</enabled>
<Log4PhpLogger>loggerTechnique</Log4PhpLogger> <Log4PhpLogger>loggerTechnique</Log4PhpLogger>
<Log4PhpBusinessCode>notifications</Log4PhpBusinessCode> <Log4PhpBusinessCode>notifications</Log4PhpBusinessCode>
<Log4PhpConfigPath>/var/www/MaarchCourrier/apps/maarch_entreprise/xml/log4php.xml</Log4PhpConfigPath> <Log4PhpConfigPath>/var/www/html/MaarchCourrier/apps/maarch_entreprise/xml/log4php.xml</Log4PhpConfigPath>
</LOG4PHP> </LOG4PHP>
</ROOT> </ROOT>
#!/bin/sh
eventStackPath='/var/www/html/MaarchCourrier/modules/notifications/batch/basket_event_stack.php'
cd /var/www/html/MaarchCourrier/modules/notifications/batch/
php $eventStackPath -c /var/www/html/MaarchCourrier/modules/notifications/batch/config/config.xml -n BASKETS
\ No newline at end of file
#!/bin/sh #!/bin/sh
eventStackPath='/var/www/MaarchCourrier/modules/notifications/batch/process_event_stack.php' eventStackPath='/var/www/html/MaarchCourrier/modules/notifications/batch/process_event_stack.php'
cd /var/www/MaarchCourrier/modules/notifications/batch/ cd /var/www/html/MaarchCourrier/modules/notifications/batch/
php $eventStackPath -c /var/www/MaarchCourrier/modules/notifications/batch/config/config.xml -n NCC php $eventStackPath -c /var/www/html/MaarchCourrier/modules/notifications/batch/config/config.xml -n NCC
php $eventStackPath -c /var/www/MaarchCourrier/modules/notifications/batch/config/config.xml -n ANC php $eventStackPath -c /var/www/html/MaarchCourrier/modules/notifications/batch/config/config.xml -n ANC
php $eventStackPath -c /var/www/MaarchCourrier/modules/notifications/batch/config/config.xml -n AND php $eventStackPath -c /var/www/html/MaarchCourrier/modules/notifications/batch/config/config.xml -n AND
php $eventStackPath -c /var/www/MaarchCourrier/modules/notifications/batch/config/config.xml -n RED php $eventStackPath -c /var/www/html/MaarchCourrier/modules/notifications/batch/config/config.xml -n RED
#!/bin/sh #!/bin/sh
mlbStackPath='/var/www/MaarchCourrier/modules/notifications/batch/stack_letterbox_alerts.php' mlbStackPath='/var/www/html/MaarchCourrier/modules/notifications/batch/stack_letterbox_alerts.php'
eventStackPath='/var/www/MaarchCourrier/modules/notifications/batch/process_event_stack.php' eventStackPath='/var/www/html/MaarchCourrier/modules/notifications/batch/process_event_stack.php'
cd /var/www/MaarchCourrier/modules/notifications/batch/ cd /var/www/html/MaarchCourrier/modules/notifications/batch/
php $mlbStackPath -c /var/www/MaarchCourrier/modules/notifications/batch/config/config.xml php $mlbStackPath -c /var/www/html/MaarchCourrier/modules/notifications/batch/config/config.xml
php $eventStackPath -c /var/www/MaarchCourrier/modules/notifications/batch/config/config.xml -n RET1 php $eventStackPath -c /var/www/html/MaarchCourrier/modules/notifications/batch/config/config.xml -n RET1
php $eventStackPath -c /var/www/MaarchCourrier/modules/notifications/batch/config/config.xml -n RET2 php $eventStackPath -c /var/www/html/MaarchCourrier/modules/notifications/batch/config/config.xml -n RET2
#!/bin/sh #!/bin/sh
cd /var/www/MaarchCourrier/modules/notifications/batch/ cd /var/www/html/MaarchCourrier/modules/notifications/batch/
emailStackPath='/var/www/MaarchCourrier/modules/notifications/batch/process_email_stack.php' emailStackPath='/var/www/html/MaarchCourrier/modules/notifications/batch/process_email_stack.php'
php $emailStackPath -c /var/www/MaarchCourrier/modules/notifications/batch/config/config.xml php $emailStackPath -c /var/www/html/MaarchCourrier/modules/notifications/batch/config/config.xml
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment