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 need of vss to developer?
Different types of authentication modes in .net framework ?
What are library functions?
server.transfer limitation ?
2. I've a class Parent Class A and a Derived Class B. Here is a scenario. I've an instance of Class A as objA and an instance of Class B as objB. I can refer a child class variable as objB=objA, but cannot do objA=objB what is the reason?
What is the difference between abstract class and Interface? Give an example how will u write an abstract class using .NET Framework
Differences between VS 2005, 2008 and 2010 ?
What i sthe meaning of .(dot) in .Net?
Explain write back and write through caches? : Dot net architecture
.Net Frame work arch?
How to work with Crystal Reports without using Visual Studio?
Define cache? : Dot net architecture