System.Net.Mail.SmtpException: Échec d'envoi du courrier. ---> System.Net.WebException: Le nom distant n'a pas pu être résolu: 'smtp.gmail.com'
à System.Net.ServicePoint.GetConnection(PooledStream PooledStream, Object owner, Boolean async, IPAddress& address, Socket& abortSocket, Socket& abortSocket6, Int32 timeout)
à System.Net.PooledStream.Activate(Object owningObject, Boolean async, Int32 timeout, GeneralAsyncDelegate asyncCallback)
à System.Net.PooledStream.Activate(Object owningObject, GeneralAsyncDelegate asyncCallback)
à System.Net.ConnectionPool.GetConnection(Object owningObject, GeneralAsyncDelegate asyncCallback, Int32 creationTimeout)
à System.Net.Mail.SmtpConnection.GetConnection(ServicePoint servicePoint)
à System.Net.Mail.SmtpTransport.GetConnection(ServicePoint servicePoint)
à System.Net.Mail.SmtpClient.GetConnection()
à System.Net.Mail.SmtpClient.Send(MailMessage message)
--- Fin de la trace de la pile d'exception interne ---
à System.Net.Mail.SmtpClient.Send(MailMessage message)
à WindowsFormsApplication10.Form3.buttonX1_Click(Object sender, EventArgs e) dans C:\Users\CHIkH\Documents\Visual Studio 2010\Projects\WindowsFormsApplication10\WindowsFormsApplication10\Form3.cs:ligne 33
Partager