...

View Full Version : Upload files in contact form.



BlackReef
03-05-2013, 07:13 PM
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

DanInMa
03-06-2013, 06:16 PM
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/10828/Sending-Email-with-attachment-in-ASP-NET-using-SMT

mscit
03-10-2013, 05:30 AM
i have no idea about this topic so please explain any one have an idea

annaharris
04-04-2013, 02:29 PM
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

livetecshosting
04-06-2013, 10:04 AM
I would recommend this tutorial for using ASP.net file upload control
http://www.tutorialspoint.com/asp.net/asp.net_file_uploading.htm

annaharris
05-03-2013, 02:02 PM
I checked your code and it looks fine, but is it possible to upload more than one file using this code ?

annaharris
05-04-2013, 01:29 PM
The link that I shared earlier provides the solution to upload more than one image in your email message.

annaharris
05-06-2013, 01:55 PM
The link that I shared earlier provides the solution to upload more than one image in your email message.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum