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 |
how can we achieve language interoperability through CLS? How MSIL works?
7. Oop-Diff B/w Interfacse and abstract class.
what is the method while we are using adapter and dataset ?
Can I create my own permission set?
What is the mesi? : .NET Architecture
Explain the use of virtual, sealed, override, and abstract.
how can u manage sessions ?
Wcf- What is ABC
Differnce between managed code and unmanaged code ?
Can I create my own metadata attributes?
What is abstact class? in which scinario we can use abstact class?
Explain the difference between primary & secondary storage device? : .NET Architecture