![]() |
Upload files in contact form.
I have a basic .aspx form that sends an email to us once submitted (no database).
How difficult would it be to give the user a upload image ability on this form, and then have the image sent in the email as an attachment? Thanks! J |
Ohh right, you wanted to just do it as an attachment. Sorry I thought you wanted to embed the image into the email itself. OK, so you will defintely need to add a fileuploadcontrol and process it in your code behind to handle the file.
Ok, I found a much better tutorial that applies, http://www.codeproject.com/Articles/...-NET-using-SMT |
i have no idea about this topic so please explain any one have an idea
|
Regarding Uploading Files
Below I have mentioned a link that will help you in embedding an image in mail body and send it to the recipient. http://code.msdn.microsoft.com/CSSMTPSendEmail-c241f55d
|
I would recommend this tutorial for using ASP.net file upload control
http://www.tutorialspoint.com/asp.ne..._uploading.htm |
I checked your code and it looks fine, but is it possible to upload more than one file using this code ?
|
The link that I shared earlier provides the solution to upload more than one image in your email message.
|
The link that I shared earlier provides the solution to upload more than one image in your email message.
|
| All times are GMT +1. The time now is 07:26 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.