Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7789529
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T21:19:31+00:00 2026-06-01T21:19:31+00:00

Given there is a FAILTO=” option for cfmail, triggering an email to be sent

  • 0

Given there is a “FAILTO=”” option for cfmail, triggering an email to be sent to that email if the email didn’t get delivered…

Is there a way to somehow assign an ID or tracking # to an email, store it in a database with that ID… then update the status of that email if it fails?

I’d like to track bouncebacks… preferably WITHOUT sending the FAILTO to a POP3 or IMAP and then checking it with cfimap…

Is there any alternate way of handling this?

Maybe an event gateway that is triggered upon email failure?

UPDATE: I’ve decided to take a different approach, utilizing the sendgrid API.
I’m hoping that lends me with a few more tools than CF offers.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T21:19:33+00:00Added an answer on June 1, 2026 at 9:19 pm

    The short answer to your question is unfortunately no.

    A longer version with a possible solution:
    The failTo email address populates the return-path in the email header, this then ‘should’ be used by mail servers for bounce backs (however see – http://www.bennadel.com/blog/1899-GMail-Seems-To-Ignore-The-Return-Path-Header-Defined-By-The-CFMail-FailTo-Attribute.htm for an example where it doesn’t)

    So you are going to need to monitor an Imap or pop account to see your mails, however you can set up an event gateway to monitor this, with detailed instructions here – http://www.alagad.com/documentation/imapGateway/ImapWatcher%20Gateway%20Documentation.pdf

    What you’re left with is needing to identify which mail matches which bounceback, when I’ve done something similar in the past I used unique id’s for the failTo email addresses at a domain I owned. If you set that up and then use your listener cfc to look for the id in the return-path.

    So your sending code would work along the lines of:

    • Generate unique id
    • Send mail
    • Add row to database with unique id

    Your listener.cfc would then need to inspect the email returned and if it finds the unique id update the row with whatever information that you’re after.

    Hope that that at least helps even if you’ll need to set up some other bits.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Given that: There seems to be no easy way to get a list of
Original Problem: I have 3 boxes each containing 200 coins, given that there is
Is there a way to block a given change based on the user role?
Given a list of potential ID's is there a quick way using a single
Given a variable which holds a string is there a quick way to cast
Given a url to an image is there a way in Django/Python to pull
Is there a simple way to see assigned shortcuts with given prefix? Something similar
Given the following code, is there a way I can call class A's version
I've created two UserControls, a ValidationManager and a ValidationOutput. On a given form there
I have a script which allows to display search results. Given a query there

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.