My public-facing MVC website collects user data through a form and after some data processing needs to perform a direct send of an email to the Office 365 email address, meaning SMTP relay is not an option here. The site is completely open to the public and doesn't need any pages secured. I figured that I can use Office 365 API to send emails, but I want to avoid using SMTP relays and prompting for a user log-in. Basically, I need the website to be authenticated as the user programmatically, thus avoiding redirection to the Azure AD login page.
Is it possible? If so, then how?