Sending a Email using smtp server in .Net Core?

13,497

Through the .net core framework, you can't as it stands right now.

At the time of writing .net core version 1.1 implements the .net standard of 1.6. At that point in time, System.Net.Mail had not been ported. But as you can see by this pull request : https://github.com/dotnet/corefx/pull/12416 . It looks it's going to make it into .net Standard 2.0 (Which will likely then be implemented in the next version of .net core).

In the meantime, it seems like everyone is using the library MailKit (https://github.com/jstedfast/MailKit) which works pretty well!

Share:
13,497

Related videos on Youtube

Saurabh Nachankar
Author by

Saurabh Nachankar

I am programmer who convert theories into realities

Updated on June 26, 2022

Comments

  • Saurabh Nachankar
    Saurabh Nachankar almost 2 years

    I would like to send email using SMTP server through .net Core.
    Please explain

  • Vogel612
    Vogel612 over 5 years
    For the record: Even after this PR has been merged, the official API docs recommend using MailKit and MimeKit instead of the SMTPClient API