Send mail using SMTP with authorization

Naresh kumar 40 Reputation points
2024-10-16T09:15:15.1833333+00:00

Hi Guys,

I have been looking for a solution to send automated mail using smtpclient - 'smtp.office365.com'.

We need to send mail without any user interaction or any admin consent. Is it even possible? (Note: needed authentication for Hybrid scenario - modern authentication) Please let me know if I need to provide any additional details

Thank you in advance

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,571 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,113 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,902 questions
0 comments No comments
{count} votes

Accepted answer
  1. Andy David - MVP 148.4K Reputation points MVP
    2024-10-16T11:34:02.5866667+00:00

1 additional answer

Sort by: Most helpful
  1. Ian C 1 Reputation point
    2024-10-16T10:00:38.75+00:00

    Do you mean the .NET SMTPClient?

    If so, does this KB article help?

    https://www.prolateral.com/help/kb/outmail/547-how-do-i-set-up-outbound-smtp-using-the-net-smtpclient-class.html

    It's an example of sending emails using the .NET SMTPClient with a outbound SMTP service called outMail which also works as a send connector inside O365.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.