Source Code for Me (s-c.me)

Allows you to paste souce code to blogs! Adapted for Twitter! Here is Search Form in case you missed your code.
Code:
Selected Language:
Show Linenumbers:
Short link for Twitter:
HTML:

HTML view:

Copy Source | Copy HTML
  1. var client = new SmtpClient(props["SmtpServer"])
  2.                              {
  3.                                  DeliveryMethod = SmtpDeliveryMethod.Network,
  4.                                  Credentials = new NetworkCredential(props["SmtpLogin"], props["SmtpPwd"]),
  5.                                  Port = int.Parse(props["SmtpPort"]),
  6.                                  EnableSsl = true,
  7.                              };
  8.  
  9.             what = what + @"
    С Уважением, Почтовая служба " + props["HostAddress"];
  10.  
  11.             try
  12.             {
  13. #if !DEBUG
  14.                 client.Send(props["SmtpLogin"],
  15.                     to,
  16.                     "Subj",
  17.                     string.Format(what, pars));
  18. #endif
  19.             }
  20.             catch (SmtpFailedRecipientsException)
  21.             {
  22.  
  23.             }




Based on Manoli.Net's CodeFormatter. Made by Topbot (c) 2008-2012