public static function sendTestReminderEmails($to_email, $reminderId) { $isSent = false; $notify = new Cart66AdvancedNotifications(); $reminder = new Cart66MembershipReminders($reminderId); $from_email = $reminder->from_email; $from_name = $reminder->from_name; $head = $notify->buildEmailHeader($from_name, $from_email); $email_data = array('from_email' => $from_email, 'from_name' => $from_name, 'to_email' => $to_email, 'to_name' => '', 'copy_to' => '', 'head' => $head, 'subject' => $reminder->subject, 'msg' => $reminder->getReminderEmailMessage(null, $head['mime'], 'test'), 'attachments' => null, 'order_id' => '', 'email_type' => 'TEST', 'log' => 'test_emails', 'status' => 'test'); if ($reminder) { $isSent = $notify->sendEmail($email_data); } return $isSent; }