/** * test email sending * @return string */ public function mailTest() { if ('smtp' == strtolower($this->input->post('protocol'))) { $this->smtpMailTest(); return; } else { $this->from = $this->input->post('from'); $this->from_email = $this->input->post('from_email'); $this->send_to = $this->input->post('send_to'); $this->theme = $this->input->post('theme'); $this->port = $this->input->post('port'); $this->protocol = $this->input->post('protocol'); $this->mailpath = $this->input->post('mailpath'); $this->type = 'text'; $config = array('port' => $this->port, 'protocol' => $this->protocol, 'mailpath' => $this->mailpath, 'type' => $this->type); return parent::mailTest($config); } }