ASP.NET opening email attachements -


i have asp.net web forms application pulls email imap account. using imap control nsoftware ip*works pull emails. in order download , save attachments 1 this...

for (int part = 0; part < imaps1.messageparts.count; part++) {     if (imaps1.messageparts[part].filename.length > 0)     {         imaps1.localfile = "c:\\users\\someguy\\documents\\" + imaps1.messageparts[part].filename;         imaps1.fetchmessagepart(imaps1.messageparts[part].id);     } } 

but don't want downloaded; want attachment open.

how that?

thanks!

you need save attachment contents response.outputstream rather file on disk.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -