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

javascript - Iterate over array and calculate average values of array-parts -

ASP.NET Javascript: window.open won't work twice -

jquery - Opera does not change the height of the page. Why? -