Pages

Tuesday, 19 March 2013

how to Sending email with GMail's SMTP server in ASP.NET

how to Sending email with GMail's SMTP server in ASP.NET

Small Introduction:Sending email is a very common task in any web application. In almost every web application (web site), their will atleast be an occassion to send email in any fashion.sending email on page load passing values in query stringThe SmtpMail class in ASP .NET provides properties and methods for sending messages using the Collaboration Data Objects for Windows we will see, how can we send email from an ASP .NET page.Description:now I will explain how to implement mail sending concept with attachment in asp.net. To implement this concept first we need to following reference to our application System.Web.Mail namespace What is System.Web.MailThe SmtpMail class in ASP .NET provides properties and methods for sending messages using the Collaboration Data Objects for Windows 2000 (CDOSYS) message component In this article, we will see, how can we send email from an ASP .NET page. In a nut shell, today, we will be looking into the following:

. What we need to send Email from an ASP .NET?. How to send an email from an ASP .NET page?. What is new in sending email? (SmtpMail.SmtpServer). How can we send attachments in an email?