/** * Function to process the form * * @access public * @return None */ function postProcess() { $mailing_id = $this->get('mailing_id'); $mailing_name = $this->get('mailing_name'); $start_date = $this->controller->exportValue($this->_name, 'start_date'); $now = $this->controller->exportValue($this->_name, 'now'); if ($now) { $start_date = date('YmdHis'); } else { $start_date = CRM_Utils_Date::format($start_date); } require_once 'CRM/Mailing/BAO/Job.php'; CRM_Mailing_BAO_Job::retry($mailing_id, $start_date); CRM_Core_Session::setStatus(ts('Retry scheduled for mailing: %1', array(1 => $mailing_name))); }