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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Mageshwaran RRank #411 · 6.1K reputationPosted Dec 28, 2020, 11:16 PM EST
Aman GuptaRank #193 · 12.4K reputationPosted Dec 28, 2020, 11:53 PM EST
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!!
Kiran MohantyRank #821 · 2.8K reputationPosted Dec 28, 2020, 11:59 PM EST
Umar mehmood89 reputationPosted Dec 31, 2020, 4:30 PM EST