I have an inhouse ASP.net helpdesk application; it tracks helpdesk tickets.
I would like the application to be able to read ticket responses sent by
users to a specific e-mail address and insert the information contained in
the e-mail in a ticket. Like many issue tracking systems, i would make sure
there was some type of ID in the subject or body that I could read and know
which ticket the e-mail belongs to. The problem is that I am unsure how to
best go about reading e-mail from the specific mailbox using C#? Any ideas?
> [...] The problem is that I am unsure how to
> best go about reading e-mail from the specific mailbox using C#? Any
> ideas?
If you have a known email client that is being used, and it supports
automation through .NET (e.g. Microsoft Outlook), then you can use the
automation API to access email messages.
Otherwise, there's no email-specific support in .NET for reading email.
You'd need to write your own.
POP and IMAP are reasonably simple and well-documented APIs, so if the
protocol you're dealing with is either of those it probably wouldn't be
too hard. You'll want to find a form more specifically related to mail
clients using those formats though, except of course for questions that
really are about C# and/or .NET and only tangentially related to the fact
that you're trying to implement a mail client.
Pete