how to retrieve, save and resend attachment?

  • Thread starter Thread starter will
  • Start date Start date
W

will

hi,

my ISP doesn't have webmail service, so i use TcpClient & Friends to
issue POP3 commands to retrieve emails, store data on a website, and use
that website to view emails.

it all works fine with text-only emails, but it doesn't store
attachments correctly. all attachments are displayed 'raw'. how do i
deal with this problem?

on the other hand, if i want to forward an email with attachment(s),
what should i use? MailMessage() or SMTP?

are there websites with examples?

thanks

will.
 
hi,

my ISP doesn't have webmail service, so i use TcpClient & Friends to
issue POP3 commands to retrieve emails, store data on a website, and
use that website to view emails.

it all works fine with text-only emails, but it doesn't store
attachments correctly. all attachments are displayed 'raw'. how do i
deal with this problem?

These attachments
are MIME encoded within the text of the message itself.
You'll need to decode
the entire message (headers + body), and then it will be separated properly into
its parts (text/plain, text/html, attachments,
etc)
on the other hand, if
i want to forward an email with attachment(s),
what should i use? MailMessage() or SMTP?

are there websites with examples?

There are POP
and MIME components included in IP*Works! .Net Edition. If you visit
www.nsoftware.com/download/, you'll find a fully functional trial, along with a
sample pop client which shows how to handle sending and receiving
attachments.

Regards,
Lance R.
/n software
http://www.nsoftware.com/

-
 
Back
Top