I've added Microsoft.NETCore.Portable.Compatibility NuGet to my Project, but I still cannot using System.Net.Mail;
I want to send mails via smtp. I've tried to add assembly reference System.dll. In that case it was possible to use System.Net.Mail but then I've got errors in MailMessage mail = new MailMessage(); mail.To.Add(receiver);
and SmtpClient smtp = new SmtpClient(); smtp.Credentials = true;
It said that mscorlib is missing.
I've searched around the whole night but did not found any solution.
It is confusing why it does not work with Microsoft.NETCore.Portable.Compatibility because that includes System.dll as well. Do I need to setup something after installing via NuGet?