How to get header information of a sent mail in Codeigniter

sachin
edited February 2022 in Codeigniter

I want to print information of email sent via codeigniter at the time of sending email via

$this->email->send()


Tagged:

Answers

  • sachin
    edited February 2022

    you can simply use print_debugger();

    $this->load->library('email');
    							
    $this->email->from(FROM_MAIL_EMAIL, FROM_MAIL_USER);
    $this->email->to($this->input->post('email', TRUE));
    $this->email->bcc(CRM_MAIL);
    $this->email->subject('New Account');
    							
    $message = $this->Email_model->temp_body_mail($data);
    $this->email->message($message);
    $this->email->set_mailtype("html");
    $this->email->send();
    
    echo $this->email->print_debugger();
    
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!