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
Post a Comment