I\'m working on a PHP script to read and parse error logs sent to a shared mailbox.
I\'m using imap_open() to connect.
If I connect with the following creden
Try using the account alias
%USERUPN%/%SHAREDALIAS% for example:-
user@domain.com/sharedbox
where "sharedbox" is the alias of the shared mailbox instead of the full email address
I've seen different reports of some people using forward slash ( / ) and some using a backslash ( \ )
Edit
Are you using the mailbox alias? Do not use sharedbox@shareddomain.com
Exchange Configuration:
USER EMAIL: user@maindomain.com
PASSWORD: password
SHARED MAILBOX: shared@anotherdomain.com (could also be @domain.com, of course)
SHARED MAILBOX ALIAS: shared-mailbox
Note: Please make sure to create the UNIQUE alias always with the mailbox, because it creates the user [alias]@maindomain.com. In this case shared-mailbox@maindomain.com
Settings for IMAP Configuration:
EMAIL ADDRESS: shared@anotherdomain.com (shared mailbox)
IMAP SERVER: outlook.office365.com
SMTP SERVER: smtp.office365.com
USERNAME: user@maindomain.com\shared-mailbox (user\shared mailbox alias)
PASSWORD: password (user's password)