473,320 Members | 1,838 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

how to retrieve, save and resend attachment?

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.
Nov 15 '05 #1
2 2843
>

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/

-

Nov 15 '05 #2
try this:

http://www.codeproject.com/csharp/de...asp#xx744430xx

Marco.
"will" <ws***@veryhotmail.com> ha scritto nel messaggio
news:40**************@veryhotmail.com...
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.

Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Dariusz | last post by:
I have the following code which executes successfully to call the browsers "save as" box... //Screensavers if ($FileType == 'scr') { // We'll be outputting a screensaver header('Content-type:...
2
by: Didier FRAISSE | last post by:
i need to retrieve every day an email and to save his attachments for later processing. i found some piece of code in the documentation like import poplib pop = poplib.POP3(Host)...
3
by: Jeff Fenn | last post by:
Hi Doesn anyyone know the proper lines of ASP code to sucessfully retrieve a pdf file from SQL server. Everytime I run my code I get gibberish all over the screen. I would like it to prompt me...
5
by: kevin | last post by:
Hi, Any help with this would be really appreciated! I'm trying to download a file from a remote server. The access permissions is okay but the problem I'm facing is that the file is getting...
8
by: DanB | last post by:
This is probably soooo simple but I can't seem to get it. I have a text file that I want users to download via a web page. I want the file to be saved to a default folder (or one that they...
4
by: Jonny | last post by:
Hello Group How do I open a Save File Dialog from an ASPX page behind a browse button? Any help would be fantastic!! I am using ASP.NET 1.1 using VB.NET as the coding language TIA
4
by: sonja.chevre | last post by:
Hello ! I'm looking for a script which allows me to read emails and attachment from a pop server (then I'll save the email's text in a db and the attachments on the server). So I have found...
1
by: netLynx | last post by:
Hi, I am rewriting code from VB6 using MAPI into VB.NET I need to read an attachment off an email on an Exchange Server. In the old VB6 (not written by me) they restrict the Messages.type to...
6
by: jordanbondo | last post by:
I need to be able to connect to MS Exchange 2007 and find a particular email with a particular attachment on it. This attachment is sent to multiple people, but I have an account set up where the...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.