Skip to content

Instantly share code, notes, and snippets.

@msfidelis
Created January 21, 2016 00:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save msfidelis/bdae9da1bbc6ceac2853 to your computer and use it in GitHub Desktop.
Save msfidelis/bdae9da1bbc6ceac2853 to your computer and use it in GitHub Desktop.
<?php
defined('BASEPATH') or exit('No direct script access allowed');
class Envia extends CI_Controller {
function __construct() {
parent::__construct();
}
public function enviar() {
if ($_POST) {
$fromname = $this->input->post('fromname');
$fromemail = $this->input->post('fromemail');
$toemail = $this->input->post('toemail');
$subject = $this->input->post('subject');
$message = $this->input->post('message');
$data = array('fromname' => $fromname, 'fromemail' => $fromemail, 'toemail' => $toemail, 'subject' => $subject, 'message' => $message);
if ($this->send_spoofing($data) == TRUE) {
return TRUE;
} else {
return FALSE
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment