attachment in email as parameter to method call

L

Ludwig

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
 
M

Moty Michaely

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

Dear Ludwig,

Is there any way you parse the arrived mail?

Moty
 
L

Ludwig

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
 
M

Michael Nemtsev

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/internet/despop3client.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

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top