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 the types of memory management? : .NET Architecture
Explain write back and write through caches? : Dot net architecture
How many types of languages does .net support? name at least 10-15?
12 Answers Interac, Six Sigma, TechUnity,
What is .net mobile images control. : Microsoft dot net mobile
Please tell me the .net 2.5 frame work with example
Explain how to develop mobile applications using microsoft mobile internet toolkit (mmit) or .net mobile? : Microsoft dot net mobile
Explain the difference between inprocess vs out process session state : Dot net architecture
how we can fire event in databound column in datagrid without using button?
what are the lifetime events of a from?
What is .net mobile input validation. : Microsoft dot net mobile
I can't be bothered with cas. Can I turn it off?
how to add list of items in a web application and win application?