MPAA - Free Advertising - Boston Tent Rental - Delphi Components - Best Credit Cards

PDA

View Full Version : Email scripting


Weirfire
Nov 6th 2004, 5:47 am
Would it be possible to automatically extract information from emails and update information on a webserver?

The problem I have is that my online merchant fastpay has told me that they won't send information back once an order is complete but they will either email or SMS when someone makes a purchase. So I want to extract the order ID from the email so I can update the database automatically.

THT
Nov 6th 2004, 8:33 am
you could read info from a pop3 server and if the email/subject contained relevant info, do soemthing etc

Yeah should be able to do this with fsockopen in PHP

Weirfire
Nov 6th 2004, 9:13 am
Excellent!! So something can be done. I'll be looking into that on Monday. That's me off now for the weekend...

yes! 1 day weekend for those of us crazy people who decide to run a business as well as study a final year university degree. :eek:

expat
Nov 7th 2004, 4:48 am
Hi W,

this should get you started
http://www.theukwebdesigncompany.com/articles/php-incoming-mail.php

When you done it - I want the final script.....

cheers
M

Weirfire
Nov 7th 2004, 9:48 am
After all the help you've given me, I think it would only be fair :)