Help: Programming Exchange Mailboxes

Status
Not open for further replies.

RaveBomb

Ars Legatus Legionis
11,111
Just to prefix this: I'm a Lotus Notes Developer and have been for a decade. As such, I've got very little exposure to the entire Microsoft ecosystem and I'm not overly familar with the capacity of Exchange and Sharepoint. Hence this post.

We're moving our email system from Domino to Exchange.

As such, we need to deal with a large number of custom email templates that perform various buisness functions.

My question to those who know of such things is: Are the following tasks possible? If so, what sort of programming tools do we need to aquire to get this job done? Does Outlook/Exchange have built in tools that can be leveraged to produce these functions?

Do I need to be looking at another platform such as Sharepoint as a place to do the custom programming required for these?

Examples:
When an email arrives, create a draft document with a file attachment. The contents of the draft document and the file attachement change depending on the subject line of the triggering email message.

When a message arrives, detach a file to the filesystem and possibly change the name of the detached file. Location to detach to is determined by keywords in the subject line of the triggering email message.

When a message arrives, compose and send a response that is customized (name, address, recipient, etc) based on the FROM field in the triggering message.

When a message arrives, convert a portion of the body of the message from HTML to plain text (discarding the rest), and forward it to a specified address.
 
I'd imagine you could implement this with a combination of hub transport rules and custom software.

Look into hub transport rules: http://www.simple-talk.com/sysadmin/exc ... ort-rules/


Basically you could do something like "if subject contains 'project draft' then deliver a copy of the message to project.drafts@mydomain.com

Then you have a piece of software the logs into the project.drafts mailbox every 15 minutes, creates a file in a network share, and deletes the message. Or, the software detaches attachments from the message and saves them somewhere, etc.
 

RaveBomb

Ars Legatus Legionis
11,111
Most of the processes involved are built around the email routing of messages.

Customer sends us data files via email, and we've automated the detachment process. Could we setup some sort of SFTP solution with scripts that move files around, ? Probably, but that complicates the heck out of the workflow.

Automated system spits out HTML emails, mailbox processes them into something readable by our ticket system and emails it.

What I'm hearing though is that I'd need to write (.Net?) or buy some sort of custom application to duplicate this functionality.
 
You could create a custom application that periodically pulls mails from Exchange mailboxes via POP3 or IMAP, processes them according to your business rules, and performs actions as needed, using SMTP to send responses.

Alternatively, you could use the Outlook COM API for interacting with Exchange. I'd run screaming from a solution like this, but the option is there.
 
Hamstro":3ep4h74m said:
You could create a custom application that periodically pulls mails from Exchange mailboxes via POP3 or IMAP, processes them according to your business rules, and performs actions as needed, using SMTP to send responses.

this is what our $400 help desk system only with very simple rules. it's in php so we could edit it but it works for what we need
 

Akula

Well-known member
17,428
Programming with Exchange is done in various ways. E.g., there is the old MAPI protocol, the old WebDAV protocol, and the new Exchange Web Services protocol. You can programmatically access an Exchange mailbox/public folder from any of those protocols (except EWS which is only on 2007/2010) with any programming language that supports the said interfaces.
 
Status
Not open for further replies.