CodeIgniter Forums
Email Class - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Email Class (/thread-11097.html)



Email Class - El Forum - 08-26-2008

[eluser]gedev2006[/eluser]
hI

This is in the CI documents for the email class
$this->load->library('email');

$this->email->from('your@example.com', 'Your Name');
$this->email->to('someone@example.com');
$this->email->cc('another@another-example.com');
$this->email->bcc('them@their-example.com');

$this->email->subject('Email Test');
$this->email->message('Testing the email class.');

$this->email->send();

how do i actually add custom headers to the email?


Email Class - El Forum - 08-26-2008

[eluser]Derek Jones[/eluser]
Though it's not intended to be used in that manner, there's a private _set_header() method you can use if necessary.