Answer the question
In order to leave comments, you need to log in
Why is smtp email not being sent?
MailAddress from = new MailAddress("email", "name");
MailAddress to = new MailAddress("email");
MailMessage m = new MailMessage(from, to);
m.Body = $"text";
SmtpClient smtp = new SmtpClient("server", 25);
smtp.UseDefaultCredentials = false;
smtp.Credentials = new NetworkCredential("email", "password");
smtp.EnableSsl = false;
smtp.Send(m);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question