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 difference between inprocess vs out process session state : Dot net architecture
What is .net mobile lists. Explain with an example? : Microsoft dot net mobile
The maximum report processing jobs limit configured by your system administrator has been reached.How I can Solve this problem when i using crystal report to load from my application.
What are different types that a variable can be defined and their scopes ?
Why only boxed types can be unboxed?
What happens to the winfx technologies?
How do I stop a thread?
What exactly is being serialized when you perform serialization? scope in C# ?
Explain the types of memory management? : .NET Architecture
What is a virtual memory? : Dot net architecture
Explain the difference between primary & secondary storage device? : Dot net architecture
There are so many languages are already existing for developing application.Then what is the need of .net.