<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.6 |
+ | CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2015 |
+--------------------------------------------------------------------+
$mailing = new CRM_Mailing_BAO_Mailing();
$mailing->id = $params['mailing_id'];
if ($mailing->id && $mailing->find(TRUE)) {
- $mailing->getRecipients($job->id, $params['mailing_id'], NULL, NULL, TRUE, $mailing->dedupe_email);
+ $mailing->getRecipients($job->id, $params['mailing_id'], TRUE, $mailing->dedupe_email);
return $job;
}
else {
}
// 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));
$count = 0;
/**
- * CRM-15702: Sending bulk sms to contacts without e-mail addres fails.
+ * CRM-15702: Sending bulk sms to contacts without e-mail address fails.
* Solution is to skip checking for on hold
*/
$skipOnHold = TRUE; //do include a statement to check wether e-mail address is on hold
$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,