Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2017
448
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. function send_email_test()
  2. {
  3. $config['protocol'] = 'smtp';
  4. $config['smtp_host'] = 'ssl://mail.tiaravib.com';
  5. $config['smtp_port'] = '465';
  6. $config['smtp_user'] = 'timesheet-mail@tiaravib.com';
  7. $config['smtp_pass'] = 't1m3sheet1234';
  8. $config['charset'] = 'utf-8';
  9. $config['mailtype'] = 'html';
  10. $config['newline'] = "\r\n";
  11.  
  12. $this->load->library('email', $config);
  13. $sender_email = "timesheet-mail@tiaravib.com";
  14. $sender_name = "supportcbncloud";
  15.  
  16. $this->load->library('email', $config);
  17.  
  18. $this->email->from($sender_email, $sender_name);
  19. $this->email->to('supportcbncloud@yahoo.com');
  20. $this->email->subject('test send');
  21. $this->email->message('supportcbncloud mantep');
  22.  
  23. if (!$this->email->send()) {
  24. $error = $this->email->print_debugger();
  25.  
  26. return (array("output" => 0, "result" => $error));
  27. } else {
  28. return (array("output" => 1, "result" => $this->email->send()));
  29. }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement