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
What are relation objects in dataset?
What is Video Streaming in .net??
What is the difference between an event and a delegate?
How to develop mobile applications using microsoft mobile internet toolkit (mmit) or .net mobile? : Microsoft dot net mobile
Waht is Dot net Arcitecture
Explain about clr?
What is the difference between machine config vs. Web config : Dot net architecture
Explain the race around condition? : .NET Architecture How can it be overcome? : .NET Architecture
what is tracing? Where it used?
How to implement the display in the class printdoc (how to resolve the naming conflict) a: no naming conflicts
How does .net remoting work?
What is textview control of .net mobile? : Microsoft dot net mobile
What is the mesi? : Dot net architecture
which is the institute in hyderabad for providing the live project industry training
hi, kindly send WWF(.net 3.5) pdf notes to my id. thanx in advance, chays