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 |
Explain the five stages in a dlx pipeline? : Dot net architecture
Explain about the base class library provided by microsoft.net?
IS IT Possible to inherit the AJAX page from child class which(child) is inherit from page class.Because i should apply some security in child class
What is the problem with .net generics?
I can't be bothered with cas. Can I turn it off?
when garbage collector come into picture. ?
What is different about namespace declaration when comparing that to package declaration in java?
What are the different access modifier? Explain in detail?
How can u manage state ?
What is the difference between absolute expiration and sliding-time expiration?
Explain the purpose of cache? How is it used? : .NET Architecture
What happens to the winfx technologies?