The goal of my program is to send an email using visual studio.
Here is my code:
SmtpClient cv = new SmtpClient("smtp.outlook.com", 587);
cv.EnableSsl = true;
cv.UseDefaultCredentials = false;
cv.Credentials = new NetworkCredential("richardteunen2@hotmail.com", "password");
cv.Send("richardteuen2@hotmail.com", "ipadcraze@hotmail.com", "", "Hello");
MessageBox.Show("Done");
System.Net.Mail.SmtpException: The operation has timed out. at System.Net.Mail.SmtpClient.Send(MailMessage message) at System.Net.Mail.SmtpClient.Send(String from, String recipients, String subject, String body)
Any suggestions would be great. Thank you