Receive e-mail in Progress

Chris Low

New Member
Hi Progress people,

I have a requirement to implement a system that
* monitors an e-mail account
* downloads and save the e-mail body text
* strips out the attachments and decodes them.

Have any of you attempted such a thing in Progress?

I have knocked up a rough proof of concept implementing the POP protocol with SSL using progress sockets but one issue I have found is that not all e-mail servers have the same POP features available so it looks like any attempt to implement POP will result in code that isn't robust.

Any tips, links, advice or sample code would be much appreciated.

Thanks,
Chris Low.
 

TheMadDBA

Active Member
Operating system? If it is UNIX/Linux you can use procmail or just write your own scripts to be launched when an email comes into a certain mailbox.

Windows - pretty sure you can use Outlook integration to poll the mailbox and read the messages.
 

Chris Low

New Member
Hi MadDBA,
thanks for your suggestions. I had explored those but they were not quite suited for the nuances of my requirement.

I have decided to go down the path of writing a non progress e-mail handler in Java using the javamail api which will then talk back to our progress based ERP via a webservice.
Should be pretty sweet.

Thanks,
Chris Low.
 
Top