Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $config = Array(
- 'protocol' => 'smtp',
- 'smtp_host' => 'ssl://smtp.gmail.com',
- 'smtp_port' => '587',
- 'smtp_user' => 'mygmailid@gmail.com',
- 'smtp_pass' => 'xxxmypassword',
- 'mailtype' => 'html',
- 'starttls' => true,
- 'newline' => "rn"
- );
- $message = '';
- $this->load->library('email', $config);
- $this->email->set_newline("rn");
- $this->email->initialize($config);
- $this->email->from('mygmailid@gmail.com');
- $this->email->to('mygmailid@gmail.com');
- $this->email->subject('Resume from JobsBuddy for your Job posting');
- $this->email->message($message);
- if($this->email->send())
- {
- echo 'Email sent.';
- }
- else
- {
- show_error($this->email->print_debugger());
- }
Add Comment
Please, Sign In to add comment