From d3f2a21e51728ccc13e8df6a89c2fe9e1d29567e Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Fri, 11 Oct 2019 12:18:37 +0200 Subject: [PATCH] Elimino commenti --- SteamWareLib/utils.cs | 37 ------------------------------------- 1 file changed, 37 deletions(-) diff --git a/SteamWareLib/utils.cs b/SteamWareLib/utils.cs index 793bc24..36e300f 100644 --- a/SteamWareLib/utils.cs +++ b/SteamWareLib/utils.cs @@ -789,43 +789,6 @@ namespace SteamWare { // chiamo procedura con alelgati nulli... return mandaEmailNoLog(_mailFrom, _mailTo, _oggetto, _corpo, null); -#if false - // sostituisco eventuali a capo nel corpo messaggio... - _corpo = _corpo.Replace("\r", "
"); - _corpo = _corpo.Replace("\n", "
"); - //manda email... - MailMessage messaggio = new MailMessage(_mailFrom, _mailTo, _oggetto, _corpo); - messaggio.IsBodyHtml = true; - SmtpClient _smtpClient = new SmtpClient(_smtpCli); - // se ci sono credenziali utente... - if (_username != "") - { - //_smtpClient.UseDefaultCredentials = false; - //_smtpClient.Port = 587; - //_smtpClient.DeliveryMethod = System.Net.Mail.SmtpDeliveryMethod.Network; - _smtpClient.Credentials = new NetworkCredential(_username, _password); - _smtpClient.EnableSsl = memLayer.ML.CRB("_enableSSL"); - _smtpClient.Timeout = 5000; - // verifico se sia porta non standard... - if (memLayer.ML.CRS("_PortSSL") != "") - { - _smtpClient.Port = memLayer.ML.CRI("_PortSSL"); - } - } - try - { - _smtpClient.Send(messaggio); - return true; - } - catch (SmtpException esmtp) - { - Console.WriteLine("{0}", esmtp.Message); - Console.WriteLine("Here is the full error message output"); - Console.Write("{0}", esmtp.ToString()); - logger.lg.scriviLog(string.Format("{0}\r\n full error message\r\n {1}", esmtp.Message, esmtp.ToString()), tipoLog.EXCEPTION); - return false; - } -#endif } /// /// procedura invio email + scrittura in log!