Click here to Skip to main content
15,887,175 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using EWS (Microsoft Exchange Web Services Managed API 2.1) to accomplish this but have no idea how to start. (Note: I am using C#)

The program's functionality receives emails and extracts the body of the email given the following format:

Building: {value}
Level: {value}
Phase/Room: {value}
Request: {value}

If the user sends an email with the wrong format, the program will automatically respond with "Sorry, we cannot process blah blah blah. Use this format instead..."

If the format is correct, the program will then store the values in the database.

What I have tried:

Is this possible? I've searched a lot about EWS and parsing emails but I've never found a way to extract the values inside the BODY of the email.

I've found the closest one that does similar to what I need, but it costs you money (Email2DB.com).
Posted
Updated 25-Mar-16 21:41pm

1 solution

There's plenty of information about getting email body text from an email, using EWS - once you've got the body as text, why not use a Regex to parse out those values ?

Im not affiliated with, but have used products from Independentsoft to handle getting mail items and parsing a mail item into headers/body etc (their product is a lot nicer than using EWS 'native', ymmv)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900