title: An exception of type 'System.Net.Mail.SmtpException' occurred in System.dll but was not handled in user code
body: <p>I set all params, but I get exception: An exception of type 'System.Net.Mail.SmtpException' occurred in System.dll but was not handled in user code</p>
  
  <p>Please, help with this issue.</p>
  
  <pre><code>        var verifyUrl = "/User/VerifyAccount" + activateCode;
          var link = Request.Url.AbsoluteUri.Replace(Request.Url.PathAndQuery, verifyUrl);
  
          var fromEmail = new MailAddress("******@gmail.com", "Dotnet Awesome");
          var toEmail = new MailAddress(email);
          var fromEmailPassword = "******";
          string subject = "Your account is successfully created!";
  
          string body = "&lt;br/&gt;&lt;br/&gt;We are excitef to tell you Dotnet Awesome is" +
              "successfully created. Please click on the link to verify your account" +
              "&lt;a href'" + link + "'&gt;" + link + "&lt;/a&gt;";
  
          var smtp = new SmtpClient
          {
              Host = "smpt.gmail.com",
              Port = 587,
              EnableSsl = true,
              DeliveryMethod = SmtpDeliveryMethod.Network,
              Credentials = new NetworkCredential(fromEmail.Address, fromEmailPassword)
          };
  
          using (var message = new MailMessage(fromEmail, toEmail)
          {
              Subject = subject,
              Body = body,
              IsBodyHtml = true
          })
          {
              smtp.Send(message);//Exception here
          }
  </code></pre>