I tested the new snippet in the exact same place in the same template. It tested successfully. I also added some output on the page that was based on running the isValid() function against the email addresses that the mail is being generated to and from. Again, that tested successfully. However, in the mail body itself, there is a looping <cfmailparam> tag that inserts pictures as attachments. I ran the original snippet with those commented out and was able to get some mail pieces to generate. So, suspecting the data, I tested against a different result set, but using the <cfmailparam> loop, and it was successful. So, with all this in mind, here is what I know:
* Cold Fusion version is CF8 Enterprise (multi-server install) * The cfmail service is active and responding * The smtp server is functioning as intended * The data being consumed by the cfmail tag is correct and valid * The syntax for the tag(s) is correct and valid * The cfmail will not execute for the given result set when leaving the cfmailparam loop in place * It will execute when removing the cfmailparam loop * Other mail executes as originally intended with different record sets using the cfmailparam loop * All other cfmail instances, both in other templates and the one in question, execute properly. * File changes are being recognized (evidenced when I input code to intentionally error the template) At this point, I am suspecting an issue with the actual files that are being included as attachments. It seems about the only avenue left before diving into the underlying java. But I agree with your assertion, Charlie, it doesn't add up or make a whole lot of sense. If I figure it out before you guys can, I will be sure and let ya know. Thanks again for all your input. Troy Jones Dynapp Support Team 678-528-2952 From: [email protected] [mailto:[email protected]] On Behalf Of Charlie Arehart Sent: Tuesday, March 03, 2009 3:49 PM To: [email protected] Subject: RE: [ACFUG Discuss] cfmail issue And if that doesn't seem to work, here's another. It's a stretch, but it just does not make sense that a CFMAIL would do nothing at all (not generate a file in the spool). When you say you did other snippets, did you do them in this very same template? I mean the exact one, in the same place, on the same server. If you did, then it's a stumper, unless Mischa's suggestion helps. But if you did them in another page, I would recommend you confirm for sure that the changes you make in this template are really taking. For instance, if you add some output to the page, or do a CFLOG on it, does that happen? If not, then I'd argue that your changes are not being picked up at all. How could that happen? Well, you could have "trusted cache" enabled, in which no source changes are picked up. You could also be doing this by way of a CFC instance that's loaded in memory, so changes to the source file aren't picked up then, either. Finally, there's an even more unusual (but occasionally possible) situation where source file changes aren't picked up because the class file (underlying the CF page) is newer than the source file date. This happens more often when you push code from one machine to another, and the source file has been retrieved from a source control system and has an older date. I blogged on that happening back in the CF 6 days (http://cfmxplus.blogspot.com/2002/11/alert-when-cf-will-fail-to-auto.ht ml), but have been meaning to test if it was resolved so as to no longer happen. Let us know if you confirm that changes to the source are indeed picking up, and if any of M's suggestions help. /charlie From: [email protected] [mailto:[email protected]] On Behalf Of Mischa Uppelschoten ext 10 Sent: Tuesday, March 03, 2009 2:52 PM To: Web Site Subject: re: [ACFUG Discuss] cfmail issue At the risk of stating the obvious, here is what I would do: 1. Dump the values for your vars and hardcode them in a CFMAIL statement with a very basic subject and body 2. If that looks good but still fails to send, another troubleshooting step is to use telnet from your CF server and send an email. http://www.wikihow.com/Send-Email-Using-Telnet This should reveal quick enough whether the mail server is the piece that is tripping you up... /m : Hello all, : : I am having an issue with the <cfmail> tag. In the instance of use, everything : seems to be in order (syntax, required attributes, data is valid) but for : some reason, the tag will not fire an email. I have tried everything I know : of to try (verifying the query data, eliminating the body except for a short : message, etc.) but nothing resolves the issue. I had suspected that the mail : service itself may have stopped responding but I was able to execute a : different <cfmail> instance in its place. Additionally, none of this : non-execution generates any errors or log entries. I am at a loss as to where : to focus my efforts and would appreciate any assistance. : : Here is the snippet: : : <cfmail to="#qAdAgent.agent_email#" cc="#qAdAgent.ad_emails#" : bcc="#Application.email#" from="#Application.email#" subject="Your tour has : been added to #Application.domain#" type="HTML"> : : Troy Jones : Dynapp Support Team : 678-528-2952 : ----------------------- Original Message ----------------------- From: "Troy Jones" <[email protected]> <mailto:[email protected]> To: <[email protected]> <mailto:[email protected]> Date: Tue, 3 Mar 2009 14:02:55 -0500 Subject: [ACFUG Discuss] cfmail issue Hello all, I am having an issue with the <cfmail> tag. In the instance of use, everything seems to be in order (syntax, required attributes, data is valid) but for some reason, the tag will not fire an email. I have tried everything I know of to try (verifying the query data, eliminating the body except for a short message, etc.) but nothing resolves the issue. I had suspected that the mail service itself may have stopped responding but I was able to execute a different <cfmail> instance in it's place. Additionally, none of this non-execution generates any errors or log entries. I am at a loss as to where to focus my efforts and would appreciate any assistance. Here is the snippet: <cfmail to="#qAdAgent.agent_email#" cc="#qAdAgent.ad_emails#" bcc="#Application.email#" from="#Application.email#" subject="Your tour has been added to #Application.domain#" type="HTML"> Troy Jones Dynapp Support Team 678-528-2952 ------------------------------------------------------------- To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by FusionLink <http://www.fusionlink.com> ------------------------------------------------------------- ------------------------------------------------------------- To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by http://www.fusionlink.com ------------------------------------------------------------- ------------------------------------------------------------- To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by FusionLink <http://www.fusionlink.com> ------------------------------------------------------------- ------------------------------------------------------------- To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by http://www.fusionlink.com -------------------------------------------------------------
