By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
426,179 Members | 2,192 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 426,179 IT Pros & Developers. It's quick & easy.

Move Attachments to a Folder Using System.Web.Mail

P: n/a
Is there anyway to move attachments from a incoming email
into a specified folder using System.Web.Mail ?

has anyone done this ?

Any help is appreciated.
Nov 20 '05 #1
Share this Question
Share on Google+
8 Replies


P: n/a
* "Ajit" <ad******@thedebtmediator.com> scripsit:
Is there anyway to move attachments from a incoming email
into a specified folder using System.Web.Mail ?


What code did you use to check for incoming mails using
'System.Web.Mail'?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #2

P: n/a
I am so sorry for no clarifying my q very clearly.

Checking Incoming Email and/or with attachment and moving to a folder is
also part of the q.

Basically, my q start from checking incoming email to moving attachment
files to a folder.
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:2j*************@uni-berlin.de...
* "Ajit" <ad******@thedebtmediator.com> scripsit:
Is there anyway to move attachments from a incoming email
into a specified folder using System.Web.Mail ?


What code did you use to check for incoming mails using
'System.Web.Mail'?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 20 '05 #3

P: n/a
I've been playing with this a lot recently.
Short answer is forget about System.Web.Mail.
There are a number of third party mail components that will greatly simplify
this process.
I had listed them in the question "POP3 Component Comparison" dated 6-15-04
(Which sadly I got no response to).
A list of just a few of the components I'm looking at are:
Mail.Net - www.abderaware.com
EasyMail.Net - www.quiksoft.com
IP*Works - www.nsoftware.com
Internet Mail - www.catalyst.com

The EasyMail one even has a couple samples that will pull mail from a server and
write directly to a file.

Gerald

"Ajit" <ad******@thedebtmediator.com> wrote in message
news:OL**************@tk2msftngp13.phx.gbl...
I am so sorry for no clarifying my q very clearly.

Checking Incoming Email and/or with attachment and moving to a folder is
also part of the q.

Basically, my q start from checking incoming email to moving attachment
files to a folder.
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:2j*************@uni-berlin.de...
* "Ajit" <ad******@thedebtmediator.com> scripsit:
Is there anyway to move attachments from a incoming email
into a specified folder using System.Web.Mail ?


What code did you use to check for incoming mails using
'System.Web.Mail'?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>


Nov 20 '05 #4

P: n/a
* "Ajit" <ad******@thedebtmediator.com> scripsit:
I am so sorry for no clarifying my q very clearly.

Checking Incoming Email and/or with attachment and moving to a folder is
also part of the q.

Basically, my q start from checking incoming email to moving attachment
files to a folder.


You will find some links at this document useful:

<URL:http://dotnet.mvps.org/dotnet/faqs/downloads/email.txt>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #5

P: n/a
Hi Herfried,

Thanks for the link it was of great help.

I managed to read the emails using POP3 and TCPclient
but is there anyway i can download attachements to a specific folders

has anyone done this or is there anyother way to this ?

We are against using 3-party components

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:2j*************@uni-berlin.de...
* "Ajit" <ad******@thedebtmediator.com> scripsit:
I am so sorry for no clarifying my q very clearly.

Checking Incoming Email and/or with attachment and moving to a folder is
also part of the q.

Basically, my q start from checking incoming email to moving attachment
files to a folder.


You will find some links at this document useful:

<URL:http://dotnet.mvps.org/dotnet/faqs/downloads/email.txt>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 20 '05 #6

P: n/a
* "Ajit" <ad******@thedebtmediator.com> scripsit:
Thanks for the link it was of great help.

I managed to read the emails using POP3 and TCPclient
but is there anyway i can download attachements to a specific folders

has anyone done this or is there anyother way to this ?


Attachments are embedded in the data your receive. All you need is a
MIME decoding routine that splits up the message into its
parts/attachments.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #7

P: n/a
Hi Herfried,

I am trying hard to find some tips to write MIME decoding routine but no
lucky.
do you know/have any tips or routine avaliable that can help me to seperate
Attachments from the emails.

I appreciate your help.

regards,

Ajit.

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:2j*************@uni-berlin.de...
* "Ajit" <ad******@thedebtmediator.com> scripsit:
Thanks for the link it was of great help.

I managed to read the emails using POP3 and TCPclient
but is there anyway i can download attachements to a specific folders

has anyone done this or is there anyother way to this ?


Attachments are embedded in the data your receive. All you need is a
MIME decoding routine that splits up the message into its
parts/attachments.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 20 '05 #8

P: n/a
* "Ajit" <ad******@thedebtmediator.com> scripsit:
I am trying hard to find some tips to write MIME decoding routine but no
lucky.
do you know/have any tips or routine avaliable that can help me to seperate
Attachments from the emails.


Untested:

<URL:http://www.codeproject.com/csharp/despop3client.asp>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.