#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2014
    Posts
    2
    Rep Power
    0

    Question forward email from one account to another


    I have a client who uses gmail to take support inquiries from 7 am to 7 pm.
    From 7pm to 7 am they want us to get their support email.
    I would like to grab the gmail messages and forward them to my inbox.
    I need to do this every 5 minutes. Your thoughts?
  2. #2
  3. No Profile Picture
    Moderator

    Join Date
    Jun 2002
    Location
    Raleigh, NC
    Posts
    5,307
    Rep Power
    971
    I'd look at a scheduled task running at a 5 minute interval, that uses cfpop to read the email from the Gmail account, and cfmail to send the mail contents to the other address. I don't think there's anything built into cfmail or cfpop that can perform an actual mail forward, but you should be able to mimic the behavior of a mail forward.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2014
    Posts
    2
    Rep Power
    0
    I agree. I was thinking I could hard code the destination where I would normally put a reply-to variable (from a client script I found on a blog) and keep the original contents of the message body.
    It is all just a concept in my head right now. The next thing I need to work out is forwarding attachments.

IMN logo majestic logo threadwatch logo seochat tools logo