( 1453 )
↓
analytics apple augmentedreality azure bing blogengine blogs blogsapi bugs code csharp f*connect facebook film google goole plus government humor idea info life livejournal mailid microsoft mobile moon news openid robots s-c.me semantic web sleep spam story t30p topbot trend twitter ya.ru:friend ya.ru:link ya.ru:photo ya.ru:rename ya.ru:status ya.ru:text yadnexutility yandex yandexutility
Windows Azure |
|
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)
- {
-
- }
Copy Source | Copy HTML- <add key="SmtpServer" value="smtp.gmail.com" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
- <add key="SmtpLogin" value="mail@gmail.com" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
- <add key="SmtpPwd" value="password" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
- <add key="SmtpPort" value="587" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" />
: code microsoft azure |
: | [1] |