Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8082781
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T17:13:59+00:00 2026-06-05T17:13:59+00:00

When using the standard Codeigniter mail->send() it only returns TRUE or FALSE. However, I

  • 0

When using the standard Codeigniter

mail->send()

it only returns TRUE or FALSE. However, I have requirements to handle certain SMTP return codes differently. I could parse out of the debug text info, or somehow try to override the mail handler for Codeigniter. Is there any straight forward and elegant way to do this?

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T17:14:01+00:00Added an answer on June 5, 2026 at 5:14 pm

    I dont think there is a build in mechanism for this in CodeIgniter. What you could do is extend the CI email class and add a function to expose the protected _debug_msg array.

    If you look at the source of email class you will see that print_debugger() function is converting _debug_msg array into string. So if _debug_msg has what you are looking for then you wouldn’t have to parse any string.

    class MY_Email extends CI_Email {
    
        public function __construct()
        {
            parent::__construct();
        }
    
        public get_msg()
        {
            if (count($this->_debug_msg) > 0)
            {
                return $this->_debug_msg;
            }
            else
            {
                return FALSE;
            }
        }
    }
    

    Refer the following link on how to extend CI libs
    http://codeigniter.com/user_guide/general/creating_libraries.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm fairly new to C++ standard library and have been using standard library lists
I have an application running under WebLogic that is using standard forms authentication. The
I have this piece of code using standard sockets: void set_fds(int sock1, int sock2,
I have the following config for roles using standard SqlRoleProvider, but I get an
I have a site running MVC and Nhibernate (not fluent) using standard session per
I am using CodeIgniter 2.1.0 and MySQL database. I have uploaded an image through
Facts: using standard Symfony 2.0.10 release (includes vendors) all works fine . However with
I have an app that is using standard out of the box form validation
I am using standard windows forms controls under C#. I have two controls which
I implemented background location tracking using standard location services, and it works fine. However,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.