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
Whate are resource files? How are they used in .net?
Explain about appdomains?
Why only boxed types can be unboxed?
State the different levels of exceptional safety?
Describe the advantages of writing a managed code application instead of unmanaged one. What is involved in certain piece of code being managed?
Explain about the base class library provided by microsoft.net?
Explain hard disk and what is its purpose? : .NET Architecture
What are different types that a variable can be defined and their scopes ?
What is .net mobile lists. Explain with an example? : Microsoft dot net mobile
Explain the process of gc?
Explain the Lapsed Listener problem in .net
Explain the race around condition? How can it be overcome? : Dot net architecture
What are relation objects in dataset?
Explain different pipelining hazards and how are they eliminated? : Dot net architecture
Explain domestic architecture artifacts? : .NET Architecture