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 a .net mobile example with details? : Microsoft dot net mobile
what is the method while we are using adapter and dataset ?
Can I create my own metadata attributes?
define cache memory? : Dot net architecture
Why only boxed types can be unboxed?
What are library functions?
Which is the best institute in chennai to learn DotNet? Please help.
48 Answers HCL, Infosys, NIIT,
How does .net remoting work?
.Net Frame work arch?
Explain cache memory? : .NET Architecture
Explain about developer benefit from memory management?
What is biginteger and when would you use that?