Skip to content

Instantly share code, notes, and snippets.

@totten
Last active May 19, 2016 23:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save totten/fa8ed564db5d336aec70cdda46ade0e1 to your computer and use it in GitHub Desktop.
Save totten/fa8ed564db5d336aec70cdda46ade0e1 to your computer and use it in GitHub Desktop.
Direct all mail for all builds to text files.
<?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