$ctf_geekMail->_replyTo($si_contact_opt['email_reply_to']); } else { if ($email != '') { // trying this: keep users reply to even when email_from_enforced $ctf_geekMail->_replyTo($email); } else { $ctf_geekMail->_replyTo($this->si_contact_from_email); } } $ctf_geekMail->subject($subject); $ctf_geekMail->message($message); // Start output buffering to grab smtp debugging output ob_start(); if (!($result = $ctf_geekMail->send())) { $smtp_debug = ob_get_clean(); $smtp_debug .= $ctf_geekMail->getDebugger(); } } else { if ($si_contact_opt['php_mailer_enable'] == 'wordpress') { // sending with wp_mail add_filter('wp_mail_from', array(&$this, 'si_contact_form_from_email'), 1); add_filter('wp_mail_from_name', array(&$this, 'si_contact_form_from_name'), 1); if ($ctf_email_on_this_domain != '') { // Add an action on phpmailer_init to add Sender $this->si_contact_mail_sender for Return-path in wp_mail // this helps spf checking when the Sender email address matches the site domain name add_action('phpmailer_init', array(&$this, 'si_contact_form_mail_sender'), 1); } global $phpmailer; // Make sure the PHPMailer class has been instantiated // (copied verbatim from wp-includes/pluggable.php) // (Re)create it, if it's gone missing