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 |
Why should hire you in company
Explain write back and write through caches? : .NET Architecture
can u give me real example of how web.config overrides the machine.config file?
What re interop services?
how to add list of items in a web application and win application?
Can you explain scriptmanager control?
how would you manage data if u were not to use sessions or cookies ?
How to prevent my .NET DLL to be decompiled?
Can I customise the trace output?
Differnce between managed code and unmanaged code ?
Explain about metadata?
The maximum report processing jobs limit configured by your system administrator has been reached.How I can Solve this problem when i using crystal report to load from my application.