CoasterKaty / PHPGraphMailer

PHP Class to send email through Microsoft Graph API
https://katystech.blog/2020/08/php-graph-mailer/
GNU General Public License v2.0
33 stars 18 forks source link

Question: How to know the mailbox name? #2

Closed ngekoding closed 2 years ago

ngekoding commented 2 years ago

Sorry for asking some basic question, but I don't know where to find the mailbox for the parameter? Like when getting the messages, it required the mailbox param.

Any guide for that? I am new to Azure.

Thanks in advance

CoasterKaty commented 2 years ago

That would be the email address of the mailbox you want to read/send from, which would need to be an Office 365 account which you have delegated permission to your application to read, as per the instructions on https://katystech.blog/projects/php-graph-mailer

e.g.


$messages = $graphMailer->getMessages('helpdesk@contoso.com');
echo '<pre>';
print_r($messages);
echo '</pre>';```
ngekoding commented 2 years ago

Thank you, problem was solved.