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

  • SEARCH
  • Home
  • 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 7600463
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T22:54:57+00:00 2026-05-30T22:54:57+00:00

I am trying to receive the below email with Thunderbird but it is arriving

  • 0

I am trying to receive the below email with Thunderbird but it is arriving blank. The from and subject* are intact but the message is blank yet the print_debugger(); shows all the content** etc

*The subject shows the Company Name but not the ‘User Registration Confirmation’ text

** I am also getting the following errors on the print_debugger(); page but I think it is caused by the print_debugger();

Message: Cannot modify header information - headers already sent by line 72 -> echo $this->email->print_debugger(); for both the session and url_helper

Config:

$config['protocol'] = 'mail';
$config['wordwrap'] = FALSE;
$config['send_multipart'] = FALSE ;
$config['mailtype'] = 'html';

Controller:

function _userRegEmail($activateCode,$email,$firstname,$lastname){
        $data['companyName'] = $this->core_model->companyDetails()->coreCompanyName;
        $data['companyEmail'] = $this->core_model->companyDetails()->coreContactEmail;
        $data['companyContact'] = $this->core_model->companyDetails()->coreContactName;
        $data['firstName'] = $firstname;
        $data['lastName'] = $lastname;
        $data['email'] = $email;
        $data['activateCode'] = $activateCode;

        $this->email->from($this->core_model->companyDetails()->coreContactEmail, $this->core_model->companyDetails()->coreCompanyName);
        $this->email->to($email);
        $this->email->subject($this->core_model->companyDetails()->coreCompanyName 'User Registration Confirmation');

        $messageContent= $this->load->view('email_templates/userReg',$data, TRUE);

        $this->email->message($messageContent);

        $this->email->send();

        echo $this->email->print_debugger();
    }

View:

<html>
  <head>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
    <title/>
  </head>
  <body>
    <div class="container" style="width: 600px;height: 100%;margin: 0 auto;font-family: Arial, &quot;MS Trebuchet&quot;, sans-serif">
        <div class="header" style="width: 100%">
            <h1 style="text-align: center;color: #00afd8"><?php echo $companyName; ?></h1>
            </div>
                <div class="content">
                    <h2 style="font-size: 15px">Hello <?php echo $firstName; ?></h2>
                <p style="margin-left: 15px">Thank you for signing up to Farm Ads.</p>
                <p style="margin-left: 15px">Could you please click <a href="<?php base_url(); ?>users/confirm/"<?php $activateCode; ?>>here</a> to activate your account.</p>

                <div class="from">
                    <p class="bold" style="margin-left: 15px;font-weight: bold;font-size: 12px">Regards,</p>
                    <p style="margin-left: 15px;font-weight: bold;font-size: 12px"><?php $companyContact; ?></p>
                    </div>
             </div> 
        </div>

</body>
</html>
  • 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-05-30T22:54:58+00:00Added an answer on May 30, 2026 at 10:54 pm

    You’re not passing $data to the view. Instead of:

    $messageContent= $this->load->view('email_templates/userReg','', TRUE);
    

    Try this:

    $messageContent= $this->load->view('email_templates/userReg', $data, TRUE);
    

    In the code for the email subject line you forgot a . to connect the two strings:

    $this->email->subject($this->core_model->companyDetails()->coreCompanyName.' User Registration Confirmation');
    

    There is also a mistake in your view. The $activateCode should be inside the quotes of <a href="">, not outside. And you forgot echo in a few places in your view.

    <a href="<?php echo base_url(); ?>users/confirm/<?php echo $activateCode; ?>">here</a>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was trying to change FROM field with Name and Email address. But When
I am trying to receive a json object back from php after sending data
I am trying to receive an image from the Android Gallery via an ACTION_SEND
I am trying to develop the XMPP Gateway which can send/receive from standard XMPP
I'm trying to calculate the time it takes to receive all data from a
I'm trying to execute the following query but I receive a runtime error stating
When trying to read tokens from a file in C++, I receive a seg
I'm currently trying to receive key events during a drag and drop, but it
Details below but basically I'm trying to understand what on my Droid is throwing
I'm trying to loop the key/value pairs I receive below in my query and

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.