芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/www/breadwinnerv2/application/controllers/Communication.php
load->model('communication_model'); $this->load->library("Aauth"); if (!$this->aauth->is_loggedin()) { redirect('/user/', 'refresh'); } } public function send_invoice() { $mailtoc = $this->input->post('mailtoc'); $mailtotilte = $this->input->post('customername'); $subject = $this->input->post('subject'); $message = $this->input->post('message'); $attachmenttrue = false; $attachment = ''; $this->communication_model->send_email($mailtoc, $mailtotilte, $subject, $message, $attachmenttrue, $attachment); } public function send_general() { $mailtoc = $this->input->post('mailtoc'); $mailtotilte = $this->input->post('customername'); $subject = $this->input->post('subject'); $message = $this->input->post('text'); $attachmenttrue = false; $attachment = ''; $this->communication_model->send_email($mailtoc, $mailtotilte, $subject, $message, $attachmenttrue, $attachment); } }