473,396 Members | 1,693 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,396 software developers and data experts.

attachment in email as parameter to method call

Hi,

we receive e-mails with attachments; and an attachment is nothing more
that an xml file.

Question: how can I get this attachment each time a mail arrives and
pass it as a parameter to some remote method ProcessXml(XmlDocument
xml)?

I suppose that the mailserver is involved here but I don't know how
this should be done?

Thanks,

kind regards,
Ludwig

--
Ludwig
http://www.coders-lab.be
May 14 '07 #1
4 1506
On May 14, 10:18 am, Ludwig <ludwig.stuyck(remove)@telenet.bewrote:
Hi,

we receive e-mails with attachments; and an attachment is nothing more
that an xml file.

Question: how can I get this attachment each time a mail arrives and
pass it as a parameter to some remote method ProcessXml(XmlDocument
xml)?

I suppose that the mailserver is involved here but I don't know how
this should be done?

Thanks,

kind regards,
Ludwig

--
Ludwighttp://www.coders-lab.be
Dear Ludwig,

Is there any way you parse the arrived mail?

Moty

May 14 '07 #2
On 14 May 2007 00:20:16 -0700, Moty Michaely <Mo*****@gmail.com>
wrote:
>On May 14, 10:18 am, Ludwig <ludwig.stuyck(remove)@telenet.bewrote:
>Hi,

we receive e-mails with attachments; and an attachment is nothing more
that an xml file.

Question: how can I get this attachment each time a mail arrives and
pass it as a parameter to some remote method ProcessXml(XmlDocument
xml)?

I suppose that the mailserver is involved here but I don't know how
this should be done?

Thanks,

kind regards,
Ludwig

--
Ludwighttp://www.coders-lab.be

Dear Ludwig,

Is there any way you parse the arrived mail?

Moty
Hi Moty,
well that's in fact my problem.... how can I parse a mail
attachment.... if I know how to do that, I can create an XmlDocument
from the attachment... but where and how is it done? On the
mailserver?
thanks,
Ludwig

--
Ludwig
http://www.coders-lab.be
May 14 '07 #3
Hello Ludwig,

Well, you need to do
1) Receive Mail
2) Extract attach
3) Process your XML attach

..NET has no built-in POP3 suppot, so u need to implement it by your own
I recommend to start from this article http://www.codeproject.com/cs/intern...pop3client.asp
where author describes how to do this

---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

Lthat's in fact my problem.... how can I parse a mail
Lattachment.... if I know how to do that, I can create an XmlDocument
Lfrom the attachment... but where and how is it done? On the
Lmailserver?
Lthanks,

May 14 '07 #4
On May 14, 3:27 am, Ludwig <ludwig.stuyck(remove)@telenet.bewrote:
On 14 May 2007 00:20:16 -0700, Moty Michaely <Moty...@gmail.com>
wrote:
On May 14, 10:18 am, Ludwig <ludwig.stuyck(remove)@telenet.bewrote:
Hi,
we receive e-mails with attachments; and an attachment is nothing more
that an xml file.
Question: how can I get this attachment each time a mail arrives and
pass it as a parameter to some remote method ProcessXml(XmlDocument
xml)?
I suppose that the mailserver is involved here but I don't know how
this should be done?
Thanks,
kind regards,
Ludwig
--
Ludwighttp://www.coders-lab.be
Dear Ludwig,
Ludwig,

Try to use CDO to Recieve and extract the attachment.

http://msdn2.microsoft.com/en-us/library/ms526298.aspx
/Rodrigo Alvarez
Is there any way you parse the arrived mail?
Moty

Hi Moty,
well that's in fact my problem.... how can I parse a mail
attachment.... if I know how to do that, I can create an XmlDocument
from the attachment... but where and how is it done? On the
mailserver?
thanks,
Ludwig

--
Ludwighttp://www.coders-lab.be

May 15 '07 #5

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

Similar topics

1
by: a c s | last post by:
Hi there, my problem is as follows: When emailing a file using PHP 4.0.6, the attachment received is an empty "attachment.txt" file instead of the actual file I attached. Any suggestions why...
3
by: Sean Berry | last post by:
I have the sample script that uses the smtplib module that is available at python.org. How can I use this to send an attachment? Help is greatly appreciated. Thanks. --
2
by: Kyle Pula | last post by:
I am using CDONTS to send email from an ASP script. Attached to each of these emails is a 34K PDF file. 90% of the time the file arrives intact. 10% of the time, however, users are unable to...
2
by: Zameer | last post by:
Hi All, I want to know how i can add attachment file to form for a particular user.Its like user fills his information on form and he can add an attachment file if he wants.And later when you...
3
by: TomislaW | last post by:
I am sending word document with e-mail from asp.net 2.0 application. I read doc file like this:FileStream fs = System.IO.File.Open(docPath,FileMode.Open,FileAccess.Read,FileShare.Read); Then...
7
by: erikcw | last post by:
Hi all, I'm trying to extract zip file (containing an xml file) from an email so I can process it. But I'm running up against some brick walls. I've been googling and reading all afternoon, and...
5
by: Ben K | last post by:
I saw some posting some time ago regarding a "trick" to automatically pop up an email editor with attachment using the default mail client. It is basically using automation to do the following...
2
by: MarkStorer | last post by:
Hi All I need to email a report (with contains graphs) via Lotus Notes. I've tried the 'SendObjectSnp' method (which works with some Lotus Notes clients (but not many others)); so I used the code...
2
by: Erik Witkop | last post by:
So I have been trying to get this to work all day. I can't get a local file on my web server to attach to an email. Right now I have it printing out in the body of the email. Please help me with...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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,...
0
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.