How to send Email with Attachment:
This is Abhishek Kumar I am designing a contact form which is almost the same as the contact form of our book project (Beginning Asp.net 3.5) the only extension is that I am using Fileupload control so that user can upload anything from his/her system.
The layout of contact form is as follow.
Attachment-(using file upload control)
I want after filling the contact form when user clicks on send Button. The email sent on email id with attachment which visitor has attached from his/her system as we use to get email of yahoo, rediff and so on. I would like to know what should I add in App_data/ContactForm.txt and what should I add in contact_form.aspx.cs as button click programming so that my file upload control works perfectly. Is there any changes in web config file? Please reply urgently my project is unfinished because of this problem only.