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
How can we perform data binding in atlas?
What is the access level of the visibility type internal?
I am working with asp.net 2005 and Crystal report 10. I have an image field on my dataset to show on Crystal report.And the image is shows dynamically from database in image field of CR. The image field is showing well on my Crystal report on its first page with all other data but when i click to open second page of CR,it does not show any data on that.I found that this is because of adding the image field on crystal report. Because when i remove the image field from the CR then it will run both the pages of CR. I am using the Page Load event to bind CR data with Database. And i have already check with the Init event to bind CR , but it still not shows the data on second page when i use image field on that. Please give solution for that.....
What is Opf3
which is the institute in hyderabad for providing the live project industry training
What is Video Streaming in .net??
how to change row background color in gridview
What is the use of web.config?
How to upload in video,mp4,in .net 4.5 ..?
What is ILDASM ?
What is .net mobile forms? : Microsoft dot net mobile
What is a clickonce application?
how to create applications by using Visual Studio 2012?
Explain
Explain difference between inprocess vs out process session state? : .NET Architecture