Click here to Skip to main content
16,004,587 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
How can I send a file or document from my computer to a specific Email Address ?
Posted
Updated 23-Dec-15 7:03am
v4
Comments
Leo Chapiro 23-Dec-15 7:55am    
Your question is not clear: what file do you want to send? Do you mean a screenshot?
Tareq Jami 23-Dec-15 8:03am    
no, I just want to send a file
CHill60 23-Dec-15 8:15am    
Send it where?
What have you tried?
Where are you stuck?
Leo Chapiro 23-Dec-15 8:16am    
Where do you want to send file to, dude?
Tareq Jami 23-Dec-15 11:02am    
I dropped button, but i dont know which code should i write !!
I want to browse a file and send it you got it ?

1 solution

OK, so drop a button control on the form, double-click it and put the appropriate code for uploading a file to your particular target server type in the Click event handler for the button.

Now, what did you have a problem with?
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 23-Dec-15 12:41pm    
That would be good enough for a Web application/site, but we don't know it. This is a question about nothing, so I don't think it deserves any answer.
—SA
Dave Kreskowiak 23-Dec-15 12:42pm    
Well he did ask "how to create button". :)
Sergey Alexandrovich Kryukov 23-Dec-15 12:45pm    
Well, I cannot find this question anywhere... :-)
—SA
Tareq Jami 23-Dec-15 13:03pm    
Now You have to understand it :D
Dave Kreskowiak 23-Dec-15 14:03pm    
Create an email and attach it?

There's thousands of examples of how to do this in C# all over the web. You need only to Google for "C# send email with attachment".

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900