-
Code's Tags
-
Your Codes
-
Reffers
-
Linked Codes
|
Code:
Short link for Twitter:
HTML:
HTML view:
Copy Source | Copy HTML- var client = new SmtpClient(props["SmtpServer"])
- {
- DeliveryMethod = SmtpDeliveryMethod.Network,
- Credentials = new NetworkCredential(props["SmtpLogin"], props["SmtpPwd"]),
- Port = int.Parse(props["SmtpPort"]),
- EnableSsl = true,
- };
-
- what = what + @"
С Уважением, Почтовая служба " + props["HostAddress"];
-
- try
- {
- #if !DEBUG
- client.Send(props["SmtpLogin"],
- to,
- "Subj",
- string.Format(what, pars));
- #endif
- }
- catch (SmtpFailedRecipientsException)
- {
-
- }
|