Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error fetching Emails from Office365 (IMAP) #176

Closed
mdeuerlein opened this issue Dec 8, 2018 · 4 comments
Closed

Error fetching Emails from Office365 (IMAP) #176

mdeuerlein opened this issue Dec 8, 2018 · 4 comments

Comments

@mdeuerlein
Copy link

IMAP connection to Office365 Account quits with error.

Account settings

Settings Value
Protocol IMAP
Server outlook.office365.com
Port 143
User [email protected]
Password *****
Encryption TLS

Error Message: [BADCHARSET (US-ASCII)] The specified charset is not supported.

I had the same Problem in a PHP Project but at the moment no time to contribute. But I think the following Links should help to solve the problem and if you need someone for testing, just let me know.

@crishnakh
Copy link

In this case I commented the charset parameter and the mail is fetching.

freescout/vendor/webklex/laravel-imap/src/IMAP/Query/Query.php
Not the best solution.

Line 155

/**
             * Don't set the charset if it isn't used - prevent strange outlook mail server errors
             * @see https://github.com/Webklex/laravel-imap/issues/100
             */
            if($this->getCharset() === null){
                $available_messages = imap_search($this->getClient()->getConnection(), $this->getRawQuery(), SE_UID);
            }else{
                $available_messages = imap_search($this->getClient()->getConnection(), $this->getRawQuery(), SE_UID); //, $this->getCharset()
            }

@freescout-helpdesk
Copy link
Contributor

@phanousk
Copy link

phanousk commented Mar 3, 2021

Any news on this? It's almost a year so I wonder if there is any progress :)

@freescout-helpdesk
Copy link
Contributor

See https://github.com/freescout-helpdesk/freescout/wiki/OAuth-for-Google-and-Office-365

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants