<?php
/**
* Perforce Swarm
*
* @copyright 2012 Perforce Software. All rights reserved.
* @license Please see LICENSE.txt in top-level folder of this distribution.
* @version <release>/<patch>
*/
use Zend\Mail\Transport;
return array(
'mail' => array(
'sender' => null,
'recipients' => null,
'subject_prefix' => '[Swarm]',
'use_bcc' => false,
'transport' => array(),
),
'security' => array(
'email_restricted_changes' => false
),
'service_manager' => array(
'factories' => array(
'mailer' => function ($serviceManager) {
$config = $serviceManager->get('Configuration');
$config = $config['mail']['transport'];
if (isset($config['path']) && $config['path']) {
return new Transport\File(new Transport\FileOptions($config));
} elseif (isset($config['host']) && $config['host']) {
return new \Mail\Transport\Smtp(new Transport\SmtpOptions($config));
}
return new Transport\Sendmail(
isset($config['sendmail_parameters']) ? $config['sendmail_parameters'] : null
);
},
'mail_composer' => function ($serviceManager) {
return new \Compose\Message\Compose($serviceManager);
}
),
),
);
# |
Change |
User |
Description |
Committed |
|
#1
|
18334 |
Liz Lam |
initial add of jambox |
|
|