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 is the difference between machine config vs. Web config : Dot net architecture
Explain difference between machine config vs. Web config? : .NET Architecture
Explain about appdomains?
Can I create my own metadata attributes?
What are .net mobile controls features? : Microsoft dot net mobile
How can implement drag and drop using atlas?
Whats new features in Visual Studio 2012?
Explain the number or character entered through keyboard gets converted to equivalent ascii code & it get stored on ram in the binary form. What is the exact procedure. : Dot net architecture
What is .net mobile lists. : Microsoft dot net mobile
which is the institute in hyderabad for providing the live project industry training
Explain what does the term "green architecture" mean? : .NET Architecture
What is ILDASM ?
What is textbox control of .net mobile? : Microsoft dot net mobile
Describe the Managed Execution Process in .NET?
How do I stop a thread?