473,763 Members | 7,622 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Move Attachments to a Folder Using System.Web.Mail

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
8 1923
* "Ajit" <ad******@thede btmediator.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.Mai l'?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #2
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******@thede btmediator.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.Mai l'?

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

Nov 20 '05 #3
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******@thede btmediator.com> wrote in message
news:OL******** ******@tk2msftn gp13.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******@thede btmediator.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.Mai l'?

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


Nov 20 '05 #4
* "Ajit" <ad******@thede btmediator.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
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******@thede btmediator.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
* "Ajit" <ad******@thede btmediator.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
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******@thede btmediator.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
* "Ajit" <ad******@thede btmediator.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.a sp>

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

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

Similar topics

9
10957
by: Bill | last post by:
I am trying to have the capability to email attachments. Specifically I want to be able to email a specific attachment that I name that may be a PDF document, text doc, etc. I already have a working piece of code that emails jpg attachments but does not work with any other types of attachments. Could someone tell me how to modify this code to send other types of attachments like the one's stated above(especially PDF's)? Also how do I...
3
2418
by: AspDotNetDeveloper | last post by:
I'm trying to troubleshoot why my ASP application can no longer send file attachments larger than 100K, and I have eliminated many possibilities already, but I'm running out of ideas. I think I have it narrowed down to an Outlook Express update that is installed on the Win 2K Server, but when I try to remove the update, then the application returns an Unknown Error during the objNewMail.Send function call. The symptoms are empty file...
0
1294
by: Ajit | last post by:
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.
2
2282
by: Osiris Sawiris | last post by:
I inherited an Inventory control application that updates the stock from the branches at the end of each day. We receive the stock transactions via e-mail attachments (Excel Sheets). Those attachments are currently being stored manualll in a folder and then imported into the database using the transferworksheet command. I'm facing 2 problems: 1) The imported excel sheets are stored in a table in the FE database for processing and then...
1
8238
by: Trond A. S. Andersen | last post by:
Hi all, I'm working on a project in which i need to send mail attachments in the form of Excel documents from a .NET C# application. I've written a class which creates the Excel document using the automation features provided by the Excel.Application component. The Excel workbooks/documents are stored locally before I call my SendExcelDocument() method in order to attatch each document to an instance of
0
986
by: Ajit | last post by:
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.
1
995
by: Max Bialystock | last post by:
Is it possible to take the first file in a folder (as sorted by name), email it to someone, then move the file to a separate directory? Any help at all will be much appreciated. Thanks, Max
4
6690
by: Pieter | last post by:
Hi, On the pc of one of my clients (W2000, Office 2003) I'm getting sometimes an exception when moving (Move) a MailItem to an Outlook-Folder: The RPC server is not available. (Exception from HRESULT: 0x800706BA). The client has all the updates/service packs/ etc isntalled... Does anybody has any idea why this happens? Any help our hints would be really appreciated! what is that RPC server thing?
2
4532
by: Brad | last post by:
I have a web .Net app which sends emails with attachments. After the email is sent I clean up aftermyself and delete the attachments from disk. In upgrading to .Net 2 I changed the email logic from using system.web.mail to system.net.mail (of course vs is telling me system.web.mail is obsolete). In .Net 1.1, the files deleted with no problem but in .Net 2 when I attempt to delete I receive The process cannot access the file ...'...
0
9387
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10148
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10002
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9938
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7368
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6643
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5270
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3917
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3528
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.