Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function testmail()
- {
- $config = Array(
- 'protocol' => 'smtp',
- 'smtp_host' => 'ssl://smtp.googlemail.com',
- 'smtp_port' => 465,
- 'smtp_user' => 'yohanesivan111@gmail.com',
- 'smtp_pass' => 'passwordmu',
- 'mailtype' => 'html',
- 'charset' => 'iso-8859-1'
- );
- $this->load->library('email', $config);
- $this->email->set_newline("\r\n");
- // Set to, from, message, etc.
- $this->email->from('yohanesivan111@gmail.com', 'Yohanes Ivan');
- $this->email->to('yohanesivan89@yahoo.com');
- $this->email->subject('Email Test');
- $this->email->message('Testing the email class.');
- $result = $this->email->send();
- echo $this->email->print_debugger();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement