Skip to content

Instantly share code, notes, and snippets.

@pabloprogramador
Last active December 21, 2015 01:19
Show Gist options
  • Save pabloprogramador/6226757 to your computer and use it in GitHub Desktop.
Save pabloprogramador/6226757 to your computer and use it in GitHub Desktop.
Email codeigniter
<?php
//echo $valor;
// ini_set('php_flag mail_filter', 0);
$this->load->library('email');
$config['smtp_host'] = 'smtp.manualdama.dominiotemporario.com';
$config['smtp_user'] = '[email protected]';
$config['smtp_pass'] = 'manual1';
$config['protocol'] = 'SMTP';
$config['smtp_port'] = '587';
$this->email
->initialize($config)
->from($vendedor->EMAIL, $vendedor->NOME)
->to($this->settings->get('contact_email'))
//->cc('[email protected]')
//bcc('[email protected]')
->subject('Manual da Mamae::Denuncia')
->message($valor)
->send();
// echo $this->email->print_debugger();
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment