CodeIgniter Forums
Email Class - Printable Version

+- CodeIgniter Forums (
+-- Forum: Archived Discussions (
+--- Forum: Archived Development & Programming (
+--- Thread: Email Class (/showthread.php?tid=11097)

Email Class - El Forum - 08-26-2008


This is in the CI documents for the email class

$this->email->from('[email protected]', 'Your Name');
$this->email->to('[email protected]');
$this->email->cc('[email protected]');
$this->email->bcc('[email protected]');

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


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.