How to send e-mail to gmail/yahoo or any other ID from your
mail server.I need the code.
Answer Posted / 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 |
Post New Answer View All Answers
Explain what does the term "green architecture" mean? : .NET Architecture
What is the difference between an event and a delegate?
What is password attribute of the textbox control of .net mobile? : Microsoft dot net mobile
Why am I getting an invalidoperationexception when I serialize an arraylist?
Explain about metadata?
What is the .net class that allows the retrieval of a data element using a unique key?
Explain hard disk and what is its purpose? : Dot net architecture
Explain
Use of Enable view state ? if turn off what happen ?
data types used in validation control
How can I create a application?
What does the term "green architecture" mean? : .NET Architecture
Explain the race around condition? : .NET Architecture
Define the mesi? : Dot net architecture
Explain pipelining? : .NET Architecture