¡@

Home 

c# Programming Glossary: system.net

How can I send emails through SSL SMTP with the .NET Framework?

http://stackoverflow.com/questions/1011245/how-can-i-send-emails-through-ssl-smtp-with-the-net-framework

through an SSL SMTP server on port 465 The usual way System.Net.Mail.SmtpClient _SmtpServer new System.Net.Mail.SmtpClient tempurl.org.. The usual way System.Net.Mail.SmtpClient _SmtpServer new System.Net.Mail.SmtpClient tempurl.org _SmtpServer.Port 465 _SmtpServer.EnableSsl.. 465 _SmtpServer.EnableSsl true _SmtpServer.Credentials new System.Net.NetworkCredential username password _SmtpServer.Timeout 5000..

Create “Hello Wold” WebSocket example

http://stackoverflow.com/questions/10200910/create-hello-wold-websocket-example

the code of @Maksims Mihejevs. Server using System using System.Net.Sockets using System.Net using System.Security.Cryptography.. Server using System using System.Net.Sockets using System.Net using System.Security.Cryptography using System.Threading namespace.. working with WebSockets like this Create server Socket System.Net.Sockets bind it to specific port and keep listening with asynchronous..

How do I access ARP-protocol information through .NET?

http://stackoverflow.com/questions/1148778/how-do-i-access-arp-protocol-information-through-net

This is an example for the Ping Class using System using System.Net using System.Net.NetworkInformation using System.Text namespace.. for the Ping Class using System using System.Net using System.Net.NetworkInformation using System.Text namespace Examples.System.Net.NetworkInformation.PingTest.. using System.Text namespace Examples.System.Net.NetworkInformation.PingTest public class PingExample args 0..

How to detect the language of a string?

http://stackoverflow.com/questions/1192768/how-to-detect-the-language-of-a-string

using System.Text using System.Web using System.Net using System.IO using System.Runtime.Serialization.Json namespace..

How can I decode HTML characters in C#?

http://stackoverflow.com/questions/122641/how-can-i-decode-html-characters-in-c

C# HttpWebRequest command to get directory listing

http://stackoverflow.com/questions/124492/c-sharp-httpwebrequest-command-to-get-directory-listing

www.ibiblio.org pub namespace Example using System using System.Net using System.IO using System.Text.RegularExpressions public..

(C#) How to check if System.Net.WebClient.DownloadData is downloading a binary file?

http://stackoverflow.com/questions/153451/c-how-to-check-if-system-net-webclient-downloaddata-is-downloading-a-binary-f

C# How to check if System.Net.WebClient.DownloadData is downloading a binary file I am trying.. changing the .Method in GetWebRequest using System using System.Net static class Program static void Main using MyClient client..

How can I make SMTP authenticated in C#

http://stackoverflow.com/questions/298363/how-can-i-make-smtp-authenticated-in-c-sharp

authentication smtp share improve this question using System.Net using System.Net.Mail SmtpClient smtpClient new SmtpClient NetworkCredential.. share improve this question using System.Net using System.Net.Mail SmtpClient smtpClient new SmtpClient NetworkCredential..

Sending email in .NET through Gmail

http://stackoverflow.com/questions/32260/sending-email-in-net-through-gmail

email gmail share improve this question Be sure to use System.Net.Mail not the deprecated System.Web.Mail . Doing SSL with System.Web.Mail.. System.Web.Mail is a gross mess of hacky extensions. using System.Net using System.Net.Mail var fromAddress new MailAddress from@gmail.com.. a gross mess of hacky extensions. using System.Net using System.Net.Mail var fromAddress new MailAddress from@gmail.com From Name..

.NET: Simplest way to send POST with data and read response

http://stackoverflow.com/questions/4088625/net-simplest-way-to-send-post-with-data-and-read-response

using System using System.Collections.Specialized using System.Net If you're insistent on using a static method class public static..

Sending E-mail using C#

http://stackoverflow.com/questions/449887/sending-e-mail-using-c-sharp

c# email share improve this question You could use the System.Net.Mail.MailMessage class of the .NET framework. You can find the.. here . Here is a simple example code snippet using System.Net using System.Net.Mail using System.Net.Mime ... try SmtpClient.. is a simple example code snippet using System.Net using System.Net.Mail using System.Net.Mime ... try SmtpClient mySmtpClient new..

Login to the page with HttpWebRequest

http://stackoverflow.com/questions/450380/login-to-the-page-with-httpwebrequest

username password. using System using System.Web using System.Net using System.IO using System.Web.UI using System.Web.UI.WebControls..

How can I download HTML source in C#

http://stackoverflow.com/questions/599275/how-can-i-download-html-source-in-c-sharp

You can download files with the WebClient class using System.Net ... using WebClient client new WebClient WebClient class inherits..

Sending email through Gmail SMTP server with C#

http://stackoverflow.com/questions/704636/sending-email-through-gmail-smtp-server-with-c-sharp

using System.Linq using System.Text using System.Net.Mail using System.Net namespace ConsoleApplication2 class Program.. System.Linq using System.Text using System.Net.Mail using System.Net namespace ConsoleApplication2 class Program static void Main..

How to find FQDN of local machine in C#/.NET ?

http://stackoverflow.com/questions/804700/how-to-find-fqdn-of-local-machine-in-c-net

in the .NET 2.0 and above frameworks. using System using System.Net ... public static string GetFQDN string domainName NetworkInformation.IPGlobalProperties.GetIPGlobalProperties..

Send a file via HTTP POST with C#

http://stackoverflow.com/questions/1131425/send-a-file-via-http-post-with-c-sharp

audio etc with C# via HTTP POST. Thanks c# http post system.net share improve this question To send the raw file only using..

How to save MailMessage object to disk as *.eml or *.msg file

http://stackoverflow.com/questions/1264672/how-to-save-mailmessage-object-to-disk-as-eml-or-msg-file

application configuration file like this configuration system.net mailSettings smtp deliveryMethod SpecifiedPickupDirectory .. pickupDirectoryLocation C somedirectory smtp mailSettings system.net configuration After sending the email you should see email files..

C# Connecting Through Proxy

http://stackoverflow.com/questions/1938990/c-sharp-connecting-through-proxy

the same thing declaratively you can do the following system.net defaultProxy proxy proxyaddress http your proxy address and.. address and port number bypassonlocal false defaultProxy system.net within your web.config or app.config. This sets a default proxy..

Improving performance of multithreaded HttpWebRequests in .NET

http://stackoverflow.com/questions/388908/improving-performance-of-multithreaded-httpwebrequests-in-net

file xml version 1.0 encoding utf 8 configuration system.net connectionManagement add address maxconnection 80 connectionManagement.. add address maxconnection 80 connectionManagement system.net configuration Values up to 100 work very well with Windows XP...

Setting multiple SMTP settings in web.config?

http://stackoverflow.com/questions/4363038/setting-multiple-smtp-settings-in-web-config

SMTP settings when sending email. I'm used to using the system.net mailSettings approach but as I understand it that only allows..

Calculating Bandwidth

http://stackoverflow.com/questions/442409/calculating-bandwidth

Category and that you need to insert configuration system.net settings performanceCounters enabled true settings system.net.. settings performanceCounters enabled true settings system.net configuration in your app.config. For a full sample download..

How can I save an email instead of sending when using SmtpClient?

http://stackoverflow.com/questions/567765/how-can-i-save-an-email-instead-of-sending-when-using-smtpclient

you could change your settings like this for your batch system.net mailSettings smtp deliveryMethod SpecifiedPickupDirectory specifiedPickupDirectory..

Send Email via C# through Google Apps account

http://stackoverflow.com/questions/757987/send-email-via-c-sharp-through-google-apps-account

in your code. Put them in web.config instead configuration system.net mailSettings smtp from example@domain.com deliveryMethod Network.. example@domain.com password password smtp mailSettings system.net configuration End when you send email just enable SSL on your..

HTTPWebResponse + StreamReader Very Slow

http://stackoverflow.com/questions/901323/httpwebresponse-streamreader-very-slow

settings . Try adding this to your application config system.net defaultProxy enabled false proxy bypasslist module defaultProxy.. enabled false proxy bypasslist module defaultProxy system.net You might also see a slight performance gain from buffering..

Update app.config system.net setting at runtime

http://stackoverflow.com/questions/980440/update-app-config-system-net-setting-at-runtime

app.config system.net setting at runtime I need to update a setting in the system.net.. setting at runtime I need to update a setting in the system.net SectionGroup of a .Net exe app.config file at runtime. I don't.. NetSectionGroup netSectionGroup config.GetSectionGroup system.net as NetSectionGroup netSectionGroup.Settings.HttpWebRequest.UseUnsafeHeaderParsing..