Skip to content

Instantly share code, notes, and snippets.

@totten totten/100-mail.php Secret
Last active May 19, 2016

Embed
What would you like to do?
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
You can’t perform that action at this time.