We have a website with a contact form. The form makes an API call. The API server then logs in via IMAP to send an email. This worked great when we maintained our own mail server. However, we have recently switched to Office 365.
I have created a shared mailbox ([email protected]). According to the sources I've found, to access this shared mailbox you would typically login using any licensed user credentials that have access. This is a problem. I don't want to put my credentials (or anyone else's) in the API server code (or config file).
Is there any way to set up a generic login for a shared mailbox? Is there another way to do this?