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

access shared mail #192

Closed
caalber999 opened this issue Jan 19, 2022 · 4 comments
Closed

access shared mail #192

caalber999 opened this issue Jan 19, 2022 · 4 comments
Labels

Comments

@caalber999
Copy link

How can I access shared emails in Outlook?

@Webklex
Copy link
Owner

Webklex commented Feb 3, 2022

Hi @caalber999 ,
I'm not to familiar with outlook. Do you mean shared folders? Have you checked if they are listed if you dump var_dump($client->getFolders()) ? Perhaps their name or path are a bit strange.

Best regards,

@RickKock
Copy link

RickKock commented Oct 6, 2022

Hi, think he want's to access an shared mailbox. Im looking for that myself. In regular PHP imap you can connect to using the following connection string

{outlook.office365.com:993/imap/ssl/authuser=user_account@domain.com/user=shared_mailbox@domain.com}

Now you login using your personal account, but access and shared mailbox.

@grimmalbrecht
Copy link

Hi, i was struggling with the very same problem.

Create the access token on behalf of your regular user and then use the address of the shared mailbox to login.

$client = $cm->make([
  'host' => 'outlook.office365.com',
  'port' => 993,
  'encryption' => 'ssl',
  'validate_cert' => true,
  'username' => 'addressofsharedmailbox@example.com,
  'password' => $password,
  'protocol' => 'imap',
  'authentication' => "oauth",
]);

@ssekimuli
Copy link

still it cant connect may email is assekimuli@projectcode.ug

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

No branches or pull requests

5 participants