<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.6 |
+ | CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2015 |
+--------------------------------------------------------------------+
}
// Get the mailer
- // make it a persistent connection, CRM-9349
if ($mode === NULL) {
- $mailer = $config->getMailer(TRUE);
+ $mailer = \Civi\Core\Container::singleton()->get('pear_mail');
}
elseif ($mode == 'sms') {
$mailer = CRM_SMS_Provider::singleton(array('mailing_id' => $job->mailing_id));
$replyToEmail = $mailing->replyto_email;
}
- $message = &$mailing->compose(
+ $message = $mailing->compose(
$this->id, $field['id'], $field['hash'],
$field['contact_id'], $field['email'],
$recipient, FALSE, $details[0][$contactID], $attachments,