Himberjack
Himberjack

Reputation: 5792

Messaging system for c#

I am trying to find a solution that can handle messaging via email. When a user creates a message in my application, an email is sent using subject #4857474. Then, the email recipient can reply, without changing the subject, and my application would know what message it used, based on the #id in the subject.

Now, I do not want to implement such service because its rather complex. What I am looking for is a service that provides this, and just calls my web services for a request when a new message has arrived.

Is there such thing? Thanks!

Upvotes: 1

Views: 578

Answers (2)

Anders Abel
Anders Abel

Reputation: 69250

In the smtp standard there are two header fields that can be used for this: message-id and in-reply-to.

Assign a unique message id when you send the mail, then inspect the in-reply-to field in messages you receive. Since the field is hidden from user input, there is no risk that the user messes with it.

Upvotes: 3

Max
Max

Reputation: 1068

I don't think there is a default component you could use. Also it wouldn't be a very complex flow i think.

Just read out the subject and trigger your app?

Is email a must or can you also use a webbased reply form? Then you could use just a database.

Edit:

Read email from C# http://www.codeproject.com/KB/IP/despop3client.aspx

Create a thread that runs for ever and reads out the mailbox. If a email matches your criteria (subject) then trigger your webservice.

Upvotes: 2

Related Questions