-
-
Notifications
You must be signed in to change notification settings - Fork 856
Description
Hello,
I am trying to send an email by using the scope https://communication.azure.com/.default and SmtpHostUrl = "smtp.azurecomm.net", but I receive at
client.Authenticate(oauth2); the error 535: 5.7.3 Authentication unsuccessful
Basically, I use the following Microsoft documentation and MailKit 4.14.1, but without success(I sent email using the same account with graph scope and Graph nuget, the application id and client secret are well defined, the scope on the application for Graph is SMTP.send email, only that we want to switch to MailKit because we need only to send emails):
https://learn.microsoft.com/en-us/azure/communication-services/quickstarts/email/send-email-smtp/send-email-smtp-oauth
Azure application-client secret configuration with these settings:
Did anyone have a successful implementation for sending emails with MailKit with Azure Communication Service SMTP and client credentials? I did not find any example except for the Microsoft one.