Advertisement
Ekhel

Kirim Email SMTP

Apr 1st, 2019
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.35 KB | None | 0 0
  1. $config = Array(
  2. 'protocol' => 'smtp',
  3. 'smtp_host' => 'ssl://smtp.googlemail.com',
  4. 'smtp_port' => 465,
  5. 'smtp_user' => '',
  6. 'smtp_pass' => '',
  7. 'mailtype'  => 'html',
  8. 'charset'   => 'iso-8859-1'
  9. );
  10. $this->load->library('email', $config);
  11. $this->email->set_newline("\r\n");
  12.  
  13. // Masukan Control untuk Text Email Disini.
  14.  
  15. $result = $this->email->send();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement