Helmut
13/03/2012, 22h59
Envoyé par manutlse
Nous voilà rassurés.
La parenthèse est close.
Merci de ton attention.
smtp.Credentials = new System.Net.NetworkCredential("contact@monsite.fr", MotDePasseAdresseMail);
using System.Net.Mail; MailMessage msg = new MailMessage(); msg.From = new MailAddress("contact@monsite.fr"); msg.To.Add(new MailAddress(emailTo)); msg.Subject = subject; msg.Body = body; msg.IsBodyHtml = isBodyHTML; SmtpClient smtp = new SmtpClient(); smtp.Host = "smtp.monsite.fr"; smtp.Port = 587; smtp.EnableSsl = false; smtp.Send(msg);