I am using CodeIgniter to send mass mails to people on a school account. When the email returns "Mail Delivery Error", I want the error email to be sent to the school, and not to the $from address.
The sending and receiving of emails works fine, but is there a way for Codeigniter or PHP to catch the mail delivery error and send it to another email address?
Something like:
CodeIgniter - $this -> email -> mail_delivery
or PHP - mail_delivery_error()