I cannot figure out for the life of my why this isn\'t working
SmtpClient smtp = new SmtpClient
{
Host = \"smtp.gmail.com\",
Port = 587,
UseDefau
For me the solution required 2 "steps":
UseDefaultCredentials = false first, then set the credentials I want to use Credentials = new NetworkCredential("myemail@gmail.com", "myGmailPasswordHere"). Setting the credentials first, when I set UseDefaultCredentials = false will make the Credentials property null.