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 9038863
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T09:35:32+00:00 2026-06-16T09:35:32+00:00

I am using this cakephp email plugin to pull the emails from the account.

  • 0

I am using this cakephp email plugin to pull the emails from the account. Here are my parameters

'datasource' => 'Emails.Imap',
'server' => 'mail.example.com',
'connect' => 'imap/novalidate-cert',
'username' => 'username',
'password' => 'password',
'port' => '143',
'ssl' => false,
'encoding' => 'UTF-8',
'error_handler' => 'php',

and I make a query as it is indicated in documentation

$ticketEmails = $this->TicketEmail->find('first', array('recursive' => -1));

but when I debug the result, the following fields show data like this

Array
(
    [TicketEmail] => Array
        (


. . . other fields

            [body] => CjxIVE1MPjxCT0RZPnNvbWUgbWVzc2FnZTxicj48L0JPRFk+PC9IVE1MPgo=

            [plainmsg] => IHNvbWUgbWVzc2FnZQo=

 . . . other fields
        )

)

I can not understand why it shows these strings, e.g. in email account’s message’s body is just this text some message.

My cake version is 1.3

Thanks !

  • 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-16T09:35:34+00:00Added an answer on June 16, 2026 at 9:35 am

    That’s Base64 encoding, looks like the plugin doesn’t handle that, it only checks for the quoted-printable format.

    You could decode the data in your model, for example in the Model::afterFind() callback or in a custom method, or you could try modifying the plugin so that it returns the decoded data (untested):

    protected function _fetchPart ($Part) {
        $data = imap_fetchbody($this->Stream, $Part->uid, $Part->path, FT_UID | FT_PEEK);
        if ($data) {
            // remove the attachment check to decode them too
            if ($Part->format === 'base64' && $Part->is_attachment === false) {
                return base64_decode($data);
            }
            if ($Part->format === 'quoted-printable') {
                return quoted_printable_decode($data);
            }
        }
        return $data;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to send mail using CakePHP in-built Email component. When I send
I am using cakephp 2.2 THis is my smtp setup in Config/email.php public $gmail
I'm attempting to send an email using the CakePHP SwiftMailer component I found here:
I'm using CakePHP to send an email. My controller code looks like: if ($this->User->save($this->request->data))
CakePHP has a requireSecure function in the SecurityComponent. I'm using this to force SSL
I am using CakePHP 2.1 and I am having this tag in my program..
I am developing an application in cakephp. In this application I am using saveAll()
I'm using CakePHP on this particular application. When submitting a blog post on the
I've been trying several configuration options to send email using CakePHP (CakeMail) to a
I am using the built-in email component of CakePHP 1.3, and it seems that

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.