-
-
Save totten/fa8ed564db5d336aec70cdda46ade0e1 to your computer and use it in GitHub Desktop.
Direct all mail for all builds to text files.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
## /etc/civicrm.settings.d/100-mail.php | |
## | |
## The default config in buildkit directs all outbound mail to /dev/null. | |
## You can override this and direct all mail to a text file, e.g. | |
## ~/buildkit/app/private/d46/default/mail.log | |
global $civibuild; | |
if (isset($civibuild['PRIVATE_ROOT'])) { | |
define('CIVICRM_MAIL_LOG', $civibuild['PRIVATE_ROOT'] . '/mail.log'); | |
} | |
## Or you can use a different naming convention, e.g. "/home/myuser/mail/{NAME}.log". | |
# global $civibuild; | |
# if (isset($civibuild['SITE_NAME'])) { | |
# define('CIVICRM_MAIL_LOG', '/home/myuser/mail/' . $civibuild['SITE_NAME'] . '.log' ); | |
# } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment