imap
imap copied to clipboard
Connect to Shared Mailbox
Hi How do you connect to a shared mailbox? normally you would do authuser='.$username.'/user='.$shared.'}';
thanks
I'm sorry, what exactly is a shared Mailbox? Is it a part of the IMAP standard?
Yes normally do $hostnameporting = '{outlook.office365.com:993/imap/ssl/authuser='.$username.'/user='.$sharedmailbox.'}'; imap_open($hostnameporting, $username, $password)
bit like changing to another mailbox USER EMAIL: [email protected] PASSWORD: password SHARED MAILBOX: [email protected]
imap_open("{outlook.office365.com:993/imap/ssl/[email protected]/[email protected]}", "[email protected]", "password");
anyone got any ideas on how to do this?
thanks?
Hi, you can start by creating a custom Server class with custom getServerString
implementation.
If you succeed, I can open a bit the official class allowing injection arbitrary server string for imap_open
.
I have no idea how to do this. Just need to turn my normal command which is $hostnameporting = '{outlook.office365.com:993/imap/ssl/authuser='.$username.'/user='.$sharedmailbox.'}'; imap_open($hostnameporting, $username, $password)
Can u help
On Sat, 16 Feb 2019, 20:22 Filippo Tessarotto <[email protected] wrote:
Hi, you can start by creating a custom Server https://github.com/ddeboer/imap/blob/master/src/Server.php class with custom getServerString implementation. If you succeed, I can open a bit the official class allowing injection arbitrary server string for imap_open.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ddeboer/imap/issues/393#issuecomment-464381080, or mute the thread https://github.com/notifications/unsubscribe-auth/ADRHyx0mpx-gjN7ZV4iY9fuCBFuMijrNks5vOGhqgaJpZM4aQpbY .
For me, $server->authenticate('<main email>\<mailbox>', $argv[1]);
worked.
Hey guys, had the same problem:
$connection = $server->authenticate('<main email>\<mailbox>', $argv[1]);
worked for me, but then I got issues with
$connection->getMailboxes()
My solution to fix the issue: Specific the server as follow:
$server = new Server($this->imapHost, $this->imapPort, '/imap/ssl/[email protected]>/[email protected]');
$connection = $server->authenticate('[email protected]'', 'mainPassword);
return $connection->getMailboxes()
Might be helpful for some
Hi, I don't know what shared mailboxes are: may you link me a provider of one so I can test them and document them?
Hi Slamdunk,
a shared mailbox is a mailbox from an exchange mail server like office 365, designed that multiple people have access to this mailbox. Common examples where shared mailbox are used are [email protected], etc.
https://docs.microsoft.com/en-us/exchange/collaboration/shared-mailboxes/shared-mailboxes?view=exchserver-2019
We are using office 365. You might need a premium version to test there. Not sure.
Hope that helps, Laurenz
In fact I'm unable to test Office 365 as I don't have a premium version.
Could you please send here a PR adding how you did it in the README.md please?