You can use the below class to send the emails using asp.net form or any windows based .net applications. This implements the SMTP client to send email. public class MyOwnSMTP { public void SendMail(string From, string To, string Sub, string Body) { MailMessage Email = new MailMessage(From, To, Sub, Body); Email.IsBodyHtml = true; SmtpClient smtp …
Fetching URL contents into a string using HttpWebRequest
You can use the below class for fetching the contents of any HTTP URL using the HTTP GET method. This makes use the webrequest classes of .NET class library. public static class GetUrl { public static string FetchURL(string url) { const int bufSizeMax = 65536; // max read buffer size conserves memory const int bufSizeMin …
Disadvantages Of Asp.Net Full Trust Security Level
Why shouldn’t we allow any domain to run Asp.Net application under the Full Trust level? Below are the reasons: If the Asp.Net application is allowed to run under Full Trust level then it can: 1. Browse(create/edit and delete too) files in the Windows directory using the System.IO namespace. 2. Browse(create/edit and delete too) folders in …
Fetching domain whois information using asp.net
There are several domain whois checking websites available today. For example, who.is and domaintools.com are broadly used. It is very easy to develop such web application of your own. All you need to query the whois server for a domain in question. Here is the sample code, that fetches the whois information associated with the …


Recent Comments