I’m assuming this is a POP mailbox (most are).  

 

  1. You need to use <cfpop> to read the mailbox. (this from the docs)
<cfpop 
    server = "servername"
    port = "port_number"
    username = "username"
    password = "password"
    action = "">
    name = "queryname"
    messageNumber = "number"
    uid = "number" 
    attachmentPath = "path"
    timeout = "seconds"
    maxRows = "number"
    startRow = "number"
    generateUniqueFilenames = "boolean">

  

  1. This returns a query object through which you can loop. You can then access the various attributes of each mail – see the livedocs for details
  2. Warning: if you use OE to read the mailbox, then the mails will be deleted from the server by default once you have downloaded them – you can change this, as it’ll be best to use CF to delete the mails once they’ve been parsed and uploaded to your DB.
  3. You can set up a scheduled task in the administrator (or using the cfschedule tag) to run the job as often as is necessary.

 


From: Jenny [mailto:[EMAIL PROTECTED]
Sent: 09 August 2004 10:59
To: [EMAIL PROTECTED]
Subject: [ cf-dev ] How to parse emails

 

 

Hi all,

 

Hope someone can help me ....

 

I recieve daily emails into outlook express from a maillist that I wish to use as site content.  Is there anyway I can read these messages into the database using CF ?

 

Regards,

 

Jennifer Gavin-Wear
Managing Director

 

 

Fast Track On Line -Web Design and Development
http://www.fasttrackonline.co.uk

 


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.732 / Virus Database: 486 - Release Date: 31/07/2004

Reply via email to