Reply to topic
Run script on receiving email...
discogeek


Joined: 13 Apr 2007
Posts: 4
Location: Washington, DC
Reply with quote
I'm not even sure this is a ColdFusion process or something that would be server scripted... Anyone know of a way to process a query whenever an email is received to a particular inbox?

Just to explain a little more... i have a script that will import email content into a mySQL database... it runs twice a day through CFSCHEDULE. But sometimes the boxes get rather full and would probably be more effective to just import and delete as they stream in.

Thanks!
Jason101
Forum Regular

Joined: 14 Mar 2006
Posts: 550
Location: Harrisburg, PA
Reply with quote
You can setup a scheduled task, and create a script that uses <CFPop> to check the inbox for new messages. However, If I recall correctly, CFPop won't be able to tell you what messages have or havn't been read. It will just get you the messages. You would have to keep track of the in a DB table based on each messages unique header.

If it is an exchange server, you can look into CF8's new <cfexhchangemail> tag. Not sure what kind of functionality that wilil give you.

I'm not sure you'll be able to accomplish a streaming process without using JAVA or something that is always active.

If you need more info, or some help, please let me know.
Run script on receiving email...
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic