CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   ASP.NET (http://www.codingforums.com/forumdisplay.php?f=40)
-   -   Upload files in contact form. (http://www.codingforums.com/showthread.php?t=288904)

BlackReef 03-05-2013 07:13 PM

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

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/...-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

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

livetecshosting 04-06-2013 10:04 AM

I would recommend this tutorial for using ASP.net file upload control
http://www.tutorialspoint.com/asp.ne..._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.


All times are GMT +1. The time now is 07:26 PM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.