using System;
using System.Web.Mail;
public class SmtpMailExample
{
public static void Main()
{
string FromSMTP = "from@asp.net";
string ToSMTP = "to@smtp.net";
string SubjectSMTP = "This is a SMTP Test Mail Example Message";
string BodySMTP = "Hi .";
SmtpMail.SmtpServer = "192.168.1.151";
SmtpMail.Send(FromSMTP, ToSMTP, SubjectSMTP, BodySMTP);
}
}
ASP.NET CSharpe ADO.NET and Sql Server and Javascript and jquery Example that is help to programmer
Friday, February 17, 2012
How to send mail using SMTP Mail in asp.net
Tuesday, February 14, 2012
call system dll method csharp
call system dll method in csharp application.
in this example we are using User32.dll file.
Monday, February 6, 2012
How to Clear Browser Cache using Javascript ?
This very Common Problem facing web developer. whenever user updating style sheet.
they need to press (Ctrl + F5) for clear browser cache.
Now if you are using any JavaScript file then give name like
for i.e
JavaScriptFileName.js?Math.random() <script type="text/javascript" src="http://hostname.net/js/JavaScriptFileName.js?Math.random()">
</script>
this is solution for clear browser cache.
Subscribe to:
Posts (Atom)