Ads Inside Post

Search in This Blog

Send email in Codeigniter

Send email in Codeigniter


$this->load->library('email');
$this->email->from('my@my-site.com', 'My Name');
$this->email->subject('Test subject');
$this->email->message('Testing email.');
$this->email->attach('/path/img1.jpg');
$this->email->send();