Click here to Skip to main content
15,895,011 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hey,
i'm beginner to asp.net i need a help ...
using gmail smtp server i waz trying to send images nd videos..
i can send the image static way i.e (new Attachment(MapPath("a.jpg"))) not in dynamic way using fileupload i was trying to send different images but its not working...
other issue is i even want to send video using smtp server
so plz help me abt thiz issues..
thank you
Posted

1 solution

Look at the documentation on MSDN[^]. You need to use the StreamReader to create a stream for the attachment media (be it video, image etc.)
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 6-Aug-13 16:17pm    
That should cover the core of the issue, should help. My 5.
—SA
Manas Bhardwaj 6-Aug-13 16:43pm    
thx SA!

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