Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function send_email_test()
- {
- $config['protocol'] = 'smtp';
- $config['smtp_host'] = 'ssl://mail.tiaravib.com';
- $config['smtp_port'] = '465';
- $config['smtp_user'] = 'timesheet-mail@tiaravib.com';
- $config['smtp_pass'] = 't1m3sheet1234';
- $config['charset'] = 'utf-8';
- $config['mailtype'] = 'html';
- $config['newline'] = "\r\n";
- $this->load->library('email', $config);
- $sender_email = "timesheet-mail@tiaravib.com";
- $sender_name = "supportcbncloud";
- $this->load->library('email', $config);
- $this->email->from($sender_email, $sender_name);
- $this->email->to('supportcbncloud@yahoo.com');
- $this->email->subject('test send');
- $this->email->message('supportcbncloud mantep');
- if (!$this->email->send()) {
- $error = $this->email->print_debugger();
- return (array("output" => 0, "result" => $error));
- } else {
- return (array("output" => 1, "result" => $this->email->send()));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement