<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.3 |
+ | CiviCRM version 4.4 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2013 |
+--------------------------------------------------------------------+
* @param array $files Any files posted to the form
* @param array $self an current this object
*
- * @return boolean true on succesful SMTP handoff
+ * @return boolean true on successful SMTP handoff
* @access public
*/
static function testMail($testParams, $files, $self) {
}
}
- if (CRM_Utils_Array::value('_qf_Test_next', $testParams) &&
+ if (CRM_Utils_Array::value('_qf_Test_next', $testParams) &&
$self->get('count') <= 0) {
return array(
'_qf_default' =>
return $error;
}
- $job = new CRM_Mailing_BAO_Job();
+ $job = new CRM_Mailing_BAO_MailingJob();
$job->mailing_id = $self->get('mailing_id');
$job->is_test = TRUE;
$job->save();
$testParams['job_id'] = $job->id;
$isComplete = FALSE;
while (!$isComplete) {
- $isComplete = CRM_Mailing_BAO_Job::runJobs($testParams);
+ $isComplete = CRM_Mailing_BAO_MailingJob::runJobs($testParams);
}
if (CRM_Utils_Array::value('sendtest', $testParams)) {