Posted on: 8/19/2014 8:37:38 PM | Views : 439

Hello,
I think someone of you can help me. I have an issue with the smtpclient.send method and I have no solution yet.
Below my code behind which calls the smtpclient.send method by clicking on a button:
NameValueCollection appSettings = ConfigurationManager.AppSettings; string fromuser = appSettings.Get("SmtpFromUser"); string touser = appSettings.Get("SmtpToUser"); string password = appSettings.Get("SmtpPassword"); string server = appSettings.Get("SmtpServer"); string displayname = appSettings.Get("SmtpDisplayName"); string domain = appSettings.Get("SmtpDomain"); string authtype = appSettings.Get("SmtpAuthType"); int port = int.Parse(appSettings.Get("SmtpPort")); //paramètres d'envoi de l'e-mail SmtpClient client = new SmtpClient(server, port); MailAddress from = new MailAddress(fromuser, displayname, System.Text.Encoding.UTF8); MailAddres ...

Go to the complete details ...