Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

codeigniter 3 send email smtp

//Codeigniter 3
  
$config = Array(
    'protocol' => 'smtp',
    'smtp_host' => 'ssl://smtp.googlemail.com',
    'smtp_port' => 465,
    'smtp_user' => 'xxx',
    'smtp_pass' => 'xxx',
    'mailtype'  => 'html', 
    'charset'   => 'iso-8859-1'
);
$this->load->library('email', $config);
$this->email->set_newline("
");

// Set to, from, message, etc.

$result = $this->email->send();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #codeigniter #send #email #smtp
ADD COMMENT
Topic
Name
1+4 =