title: MailKit shows mail sent but not received - .NET Core 1.1
body: <p>Following C# code in <code>VS2017</code> shows the mail was sent successfully. And I can verify from my <code>outlook</code> account's sent box that the email indeed was sent successfully. But on my <code>Yahoo</code> account, email is not there even after more than an hour. <strong>Question</strong>: Is something missing in my code here - how can we make it work? <strong>NOTE</strong>: I've verified in my outlook's sent box that both <code>From</code> and <code>To</code> mail addresses are correct. I'm following this <a href="https://social.technet.microsoft.com/wiki/contents/articles/37534.send-email-using-asp-net-core-1-1-with-mailkit-in-visual-studio-2017.aspx" rel="nofollow noreferrer">Technet article</a>.</p>
  
  <pre><code>static void Main(string[] args)
  {
      try
      {
          //From Address
          string FromAddress = "myfromEmail@hotmail.com";
          string FromAdressTitle = "Email from ASP.NET Core 1.1";
          //To Address
          string ToAddress = "myToEmail@yahoo.com";
          string ToAdressTitle = "Microsoft ASP.NET Core";
          string Subject = "Hello World - Sending email using ASP.NET Core 1.1";
          string BodyContent = "ASP.NET Core was previously called ASP.NET 5. It was renamed in January 2016. It supports cross-platform frameworks ( Windows, Linux, Mac ) for building modern cloud-based internet-connected applications like IOT, web apps, and mobile back-end.";
  
          //Smtp Server
          string SmtpServer = "smtp.live.com";
          //Smtp Port Number
          int SmtpPortNumber = 587;
  
          var mimeMessage = new MimeMessage();
          mimeMessage.From.Add(new MailboxAddress(FromAdressTitle, FromAddress));
          mimeMessage.To.Add(new MailboxAddress(ToAdressTitle, ToAddress));
          mimeMessage.Subject = Subject;
          mimeMessage.Body = new TextPart("plain")
          {
              Text = BodyContent
  
          };
  
          using (var client = new SmtpClient())
          {
  
              client.Connect(SmtpServer, SmtpPortNumber, false);
              // Note: only needed if the SMTP server requires authentication
              // Error 5.5.1 Authentication 
              client.Authenticate(FromAddress, "myFromEmailpassword");
              client.Send(mimeMessage);
              Console.WriteLine("The mail has been sent successfully !!");
              Console.ReadLine();
              client.Disconnect(true);
  
          }
      }
      catch (Exception ex)
      {
          throw ex;
      }
  }
  </code></pre>