How to send e-mail to gmail/yahoo or any other ID from your
mail server.I need the code.
Answer / sunny
using System.Net.Mail;
public partial class _Default : System.Web.UI.Page
{
protected void btnsendmail_Click(object sender,
EventArgs e)
{
SmtpClient obj = new SmtpClient();
obj.Send(txt_from.Text, txt_to.Text,
txt_subject.Text, txt_body.Text);
}
}
| Is This Answer Correct ? | 0 Yes | 1 No |
What is the purpose of cache? How is it used? : Dot net architecture
What is the use of delegates
3. Should validation (did the user enter a real date) occur server-side or client-side? Why?
Explain pipelining? : .NET Architecture
What does the term "green architecture" mean? : Dot net architecture
which would be the best to use inproc,outproc or sql server
What exactly is being serialized when you perform serialization? scope in C# ?
Define cache coherency and how is it eliminated? : Dot net architecture
How many types of assemblies are there in the visual studio.net?
12. Types of polymorphisem[Run and Design Exp.]
What is the difference between abstract class and Interface? Give an example how will u write an abstract class using .NET Framework
what is an assembly ?