ASP.NET 4.5 Hosting UK :: How to Send Email with Attachment Using Gmail and ASP.NET?

Sometime, we need to create a web site viewer can deliver a enquiry along with some attachment as some type of career choice where a candidate can post his/her resume and also the web site administrator obtain a similar inside email. Now, we demand a email along with attachment, I use below ASP.NET 4.5 code for sending email along with attachment.

HostForLIFE.eu

Right listed below I take an advantage of 2 fileupload control for uploading attachment file (right listed below I’m not checking the extension of file/as you are able to verify it first before sending email).

The code below can be utilized for sending a email along with attachment choice using C# code using Gmail credential.

 

Leave a Reply

Your email address will not be published.