Retreive Pop Email/SMS Through Progress

paulmowat

New Member
Hey All,

I'm currently looking into how possible it would be to connect to a pop email server through progress to allow emails to be processed.

The idea is to have customers who can email in a holiday request. The application will run a scheduled job to pick up those emails and process them.

I cannot use anything specific to outlook or lotus notes as we have customers who use a wide variety of platforms.

We are also looking at retrieving sms messages as well.

Any help/information would be much appreciated

Paul
 
Hi,

This is a simple(?) task to do.
Connect to your mailserver (using Progress' socket) on port 110 and
write to the following to the socket.

Code:
USER
<userid for your mailaccount>
wait for +OK from server
Code:
PASS
<password for your mailaccount>
wait for +OK from server
Code:
STAT
wait for +OK from server. The second parameter seperated by space is the number of messages on the server.
Code:
RETR <number>
The output from the socket is mailcontent for mail <number>
Code:
DELE <number>
(for deleting the mail)
Code:
QUIT
(for closing the connection)

Let me know if you need more help ;)
 
Hi Paul,

For reading the SMS there are several options.
1) get a sms box that delivers the sms as a file and then parse the file.
2) connect to the sms box through the serial port and the parse the sms directly on the box.

We have a box that deliver the sms' to a file and then we scan the directory every 5 minutes. The however demands some software running on a Windows server but if you need it, I can find a name and model number for you.
 
Hi Sdjensen,

Regarding the sms, I thought it would be done similar to the first way you mentioned. i.e. sms box delivers a file which is then fetched and parsed.

If you have a name and serial for the one you use that would be a great starting point for me to have a look.

Thanks again for your help

Paul
 
The box we use is Sony Ericsson GM29.
We have also tried to parse the data on the sms box ourself, but we found out that the file-way was faster.
 
Back
Top