ayi <p>MailKit, Office 365 et OAUTH2 : Problème d’authentification d’une application côté serveur</p>
ayi_2 <p>Réponse tardive, mais j’espère que cela épargnera à quelqu’un d’autre la semaine que j’ai passée à faire des recherches.</p> <p>La réponse la plus simple et la meilleure est d’utiliser Microsoft.Graph. Consultez ceci :<br> <a href="https://learn.microsoft.com/en-us/graph/api/user-sendmail?view=graph-rest-1.0&tabs=csharp">https://learn.microsoft.com/en-us/graph/api/user-sendmail?view=graph-rest-1.0&tabs=csharp</a></p>