HI,
i want to send and recieved email using asp.net core web api using microsoft graph api.i am new and didnt have much skills set on how to use graph api for send and recevie email.can anybody help me out.
Thanks in advance
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Mageshwaran RPosted Dec 29, 2020, 4:16 AM
Umar mehmoodPosted Dec 31, 2020, 9:30 PM
Kiran MohantyPosted Dec 29, 2020, 4:59 AM
Aman GuptaPosted Dec 29, 2020, 4:53 AM
MailKit is available as a NuGet package. Then add the following imports in code (it could be either a controller code or any standalone class).
Next, we need to set the message body and optionally add email attachments. The following code shows how this can be done:
After configuring the SMTP server connection we can now send a message and then disconnect from the server.
That's it for now! Keep coding!!