Cfmail issues

I have an application that sends an email upon the submission
of a form. Easy enough. And it has worked for a year. However, all
of a sudden, the emails are not getting delivered, and instead are
going to the Spool folder. I checked the log files, and emails were
being delivered as late as Tuesday, but yesterday started failing.
I have no idea why, or what to look for.
There are no entries in the log files (mail or mailsent) for
these, or any, emails. Nothing that hints at a failure. The last
entry in both these log files is from Tuesday, which is when the
emails started failing.
I'm at a loss here. Any ideas what to look for? or what the
issue might be?

I just found this post about the same problem. I didn't see
this during my original search. Apparently, turning Spooling off,
then back on, clears this up. Any idea what the issue may be?
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=1&catid=3&threadid=13 72910&highlight_key=y&keyword1=spool

Similar Messages

  • Intermittent CFMAIL issue

    Hello, everyone.
    I've got an intermittent CFMAIL issue that has me perplexed.
    I'm using CFMAIL to email notifications of changes made to records in a database.  In the form that is used to make these changes there is a field that has email addresses of developers who need to be notified of these changes.  These are a comma-delimited list of email addresses (which, according to CF9 cfmail documentation on adobe.com, is the correct way of sending to more than one address.)
    Some of the records will send the email, update the timestamp on the "mailsent.log", append the new email notification to "mailsent.log", and the email is received by the person(s) to whom it was sent.
    Other records, however, will (apparently) send the email, will NOT update the timestamp on "mailsent.log", but WILL append a successfully sent entry to "mailsent.log" (even though the timestamp was not updated), and the email is NOT received by the person(s) to whom it was sent.  In these cases, the timestamp of the mailsent.log will not match the timestamp of the latest entry in the mailsent.log.
    I've been able to determine one record that will always successfully complete the process, and one record that will always append a success entry (not altering the log timestamp) but the email will never reach its destination.  I am not seeing anything in any of the data that could break the transport of the email (it's all plain text, no special characters.)
    Any thoughts on this?
    Thank you,
    ^_^

    UPDATE: I just now discovered something that is most likely causing this issue: more than one email address.
    If the TO= of CFMAIL is "[email protected]", the email goes out without any issues.
    If the TO= of CFMAIL is "[email protected],[email protected]", then the email is not received, the timestamp of the log file is not updated (even though the success message is appended to the log).
    According to the docs for CF9 CFMAIL, the TO= field should be either a single email address -OR- a comma-delimited list of email addresses (or a query column that will be treated like a comma-delimited list).
    What could be causing this?
    Thanks,
    ^_^

  • CFMAIL issue in cf8

    I have set up the mail connection via CF Admin.
    I tested connection and I ahve no problem.
    But now when I send any emails where the address is in
    format:
    [email protected] it fails with invalid address
    but if i try [email protected] it send the email with no problem.
    So I know that my connection is correct.
    In fact, I already CF7 as my production server, but we are
    testing this to see if it is worth it for us to
    upgrade.
    So far this issue is cauing a major issue.
    Because many of clients have email format that I specified.
    I tested this from my email account from ail server to an
    address [email protected], and was able to send it with no problem.
    Only when using cfmail, seems to be having an issue.
    If anyone can give me a pointer or a some information to
    andle this wuld be great.
    Asad

    i have no problems sending mail to addresses like
    [email protected] using
    cf8's cfmail...
    tested on cf8 with hf2 on winxp. do you have all hotfixes in
    stalled?
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com/

  • CFMail Issues since Upgrading to CF10

    Ever since upgrading to CF10, we've been having some odd issues with our automated ColdFusion emails.  The processes always functioned properly in the past, but lately we've been getting some very out of the ordinary issues which I'll describe further below.
    We discover the problem usually from contacts who usually receive these emails on a daily basis with or without attachments.  We'll go to the CFMAIL directory for the corresponding server and find a slew of emails stuck in the 'Undelivr' emails.  In some cases, we can just move these emails to the Spool folder and they process fine, but in most cases they result in one of the two errors below:
    Error 1: In an email which normally does not contain a body and contains an attachment, the follow error is what we found in the logs:
    "Error","scheduler-1","01/15/13","14:09:56",,"javax.mail.MessagingException: missing body for message"
    javax.mail.MessagingException: missing body for message
                    at coldfusion.mail.MailImpl.createMessage(MailImpl.java:696)
                    at coldfusion.mail.MailSpooler.deliver(MailSpooler.java:1295)
                    at coldfusion.mail.MailSpooler.sendMail(MailSpooler.java:1197)
                    at coldfusion.mail.MailSpooler.deliverFast(MailSpooler.java:1657)
                    at coldfusion.mail.MailSpooler.run(MailSpooler.java:1567)
                    at coldfusion.scheduling.ThreadPool.run(ThreadPool.java:211)
                    at coldfusion.scheduling.WorkerThread.run(WorkerThread.java:71)
    Placing these emails that have always been sent out this way in the past without an attachment in the spool directory causes it to go right back in the 'Undelivr' folder and resulting in the same error.  We ended up having to modify the email file and add random content in the body message, place it back in the spool directory, and it went through.  - Mind boggling.
    Error 2:
    "Error","scheduler-2","02/04/13","09:08:17",,"javax.mail.MessagingException: Exception reading response;   nested exception is:
    java.net.SocketException: Connection reset"
    Both errors occur randomly and we have not been able to find out what causes them randomly from time to time.  All other emails go through fine, but certain emails will never go out and end up in the 'Undelivr' folder. 
    We are running them on Windows Server 2008 64bit.

    Peter, thanks for your suggestions however, the receipients in our email are either customers or internal users; which in any of the email issues we've been having, an invalid email address was not the cause.  Also, to note - these are not marketing emails.
    Just standard batch notification emails, e.g., order / warehouse notification, daily automated processes, etc.  I do wish it were something that simple to resolve these email issues once and for all.
    One other possible cause I've been looking at is "TCP/IP Port Exhaustion" - More info here http://msdn.microsoft.com/en-us/library/aa560610%28v=bts.10%29.aspx
    However, not sure how to exactly prove this to be the cause. 

  • CFMAIL issues (strange symbols)

    I'm using a very basic automated mail response for a form. It
    simply notifies someone that something has been submitted. For the
    life of me, I cannot figure out why these symbols keep appearing in
    the top of each email. IT wouldn't be that big of a deal honestly
    except that Time Warner and a few other hosts BLOCK the emails
    right now.
    The symbols are always the same and always at the top left
    hand corner of the email
    
    Any idea what's causing this? There is no special connection
    to the mailserver. Hotmail gets the email fine, but anyone behind
    Time Warner doesn't. Any suggesstions? My code is attached below.
    I've tried specifying the charset etc. It doesn't change this
    mysterious code that just... appears!

    The symbols are usually a product of different CHARsets
    between your mail server and their mail server (or browser in the
    case of webmail)
    i.e, an email generated using US-ASCII will show fine in
    Hotmail, but one using anything else (default is UTF-8) will
    sometimes have those characters in the top.
    Having said that, I highly doubt the TimeWarner servers are
    blocking the email because it has those symbols. They are more
    likely blocking it because it comes from a server w/o RDNS or
    because the X-Mailer flag is set to "ColdFusion" or because you are
    using an email domain that has been noted as Open in one of the
    Open Relay databases.
    Funny characters in the body rarely stop email from being
    processed.
    OR ... it may be getting through just fine and ending up in
    user's spam folders because it doesn't match certain criteria.
    If you are getting return mail failures, look at the messages
    (sometimes attached) and see what it says

  • Cfmail not sending to external address

    Hello,
    I have a new web server that I am testing before turning it on live. I have run into a cfmail issue. The server is
    Windows 2008 R2, 64Gig ram, 64-bit, IIS 7.5, Coldfusion 9.0.2 multi server, clustering 2 CF instances, JDK1.7.0_71
    We had a company setup CF and harden so this may be related to the hardening but I am not sure.
    <cfmail is not sending email to recipients outside of our domain/work domain. The 1st <cfmail> tag below sends the email but the 2nd one does not. This is what I see when trying to send via the 2nd <cfmail> tag with external recipient email address domain
    - no errors on the page I run in the browser
    - email is not received at [email protected] (syntax is correct)
    - attempt #2 shows up in mail/Undelivr folder
    - mail.log has this error
    "Error","scheduler-3","01/15/15","10:13:27",,"javax.mail.SendFailedException: Invalid Addresses;   nested exception is:  com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay
    - application.log - no error
    - exception.log has same error in addition to stack trace
    - server.log no error
    Any help is appreciated
    Joe
    <cfmail to="[email protected]" from="[email protected]" subject="test" type="html">
        #DateFormat(now(),"mm/dd/yyyy")# #TimeFormat(now(),"HH:mm:ss")#<br />
    </cfmail>
    <cfmail to="[email protected]" from="[email protected]" subject="test" type="html">
        #DateFormat(now(),"mm/dd/yyyy")# #TimeFormat(now(),"HH:mm:ss")#<br />
    </cfmail>

    CFMAIL is just a wrapper for the underlying Java mail API methods, so there should not be any problem with it.
    Seems like SMTP server is not registered to send mails out. So this is purly the problem with the SMTP server, not with the CFMAIL
    HTH
    Thanks
    VJ

  • CFMail Tag Issue

    I have a form on my website that use the cfmail tag to send
    information collected from a form via email. I am no longer getting
    the email submitted from the form yet I'm also not getting an error
    and I haven't changed anything. I suspect it's a relay issue but my
    Sys Adm insist it's not and suggest I use mailto: I don't see the
    point of using a client side solution when I have a server side
    (and probably better) solution already in place.
    I have listed the code I'm using to process the form for
    reference in case I am missing something. Could anyone shed some
    light on this for me. If it's not my code what are the downsides to
    using a client side solution such as mailto ?
    Thanks

    I'm assuming the isDefined leadershipopp and joinassociation
    are checkboxes.
    But..
    If for any reason one of the other form elements wasn't
    defined, you'd have an error condition.
    Wrap the cfmail tag in a cftry block and then in the cfcatch
    email an admin email with the cfcatch.message and cfcatch.detail.
    Make sure you validate the form.email format, check cflib.org
    for a udf for this. you could also use cfform validation routines.
    An invalid email will throw an error.
    Additionally, use cfparam tags for each of the form elements
    with a default value.

  • CFMail Attachment Issue (410 character limit)

    My company is in the process of upgrading from CF5 to CFMX7
    (v7.0.2). While testing the new version our test environment, I've
    discovered an issue (that didn't exist in CF5) regarding email
    attachments. I've scoured the internet looking for users who might
    have run into this issue and haven't found any.
    Here's the problem that shows up when using CFMX7. Emails
    that have attached files that have lines of code that are longer
    than 410 characters per line have the lines broken apart with a
    newline character.
    So for example if code in a file originally looked like this,
    <font face='courier new' size=-2>
     &nbspLIFE  MED  (line
    continues out to over 600 chacters)...
    </font>
    The received file would have code that looked like this,
    <font face='courier new' size=-2>
     &nbspLIFE  MED  (line
    continues out to just 410 chacters, then breaks to a new line)...
    bsp; &nbspLIFE   
    </font>
    Notice that the non-breaking space characters starting the
    second line have been chopped off.
    This causes an issue because the files we are attaching to
    the emails are bills (formatted in html) that uses a lot of
    non-breaking space ( ) characters for formatting purposes.
    Most of the lines of code are greater then 410 characters wide, and
    once the the   characters start to get broken apart, they
    end up displaying in a browser.
    Things I've tried that haven't helped.
    1) Changing the Default CFMail Charset from UTF-8 to US-ASCII
    2) Using the cfmailparam tag instead of the mimeattach
    attribute
    3) Applied hot fix hf702-65414 (which was for an issue
    regarding email spooling)
    Does anyone know how I would prevent the line break issue in
    CFMX7?
    I figured I'd ask around in a few newsgroups before we
    started spending money on support from Adobe.
    Thanks,
    Wayne Barca

    If the attached file doesn't have to be interactive, how
    making it a PDF?

  • Cfmail w/attachments issues

    Hi there,
    I have a basic html form where the user can add attachments.
    The action form uses cfmail to send an email to an address with the
    form contents as well as the attachment. However, I am having
    issues with this part and am at a loss. Do i need to do an upload
    first? or mim attachment? Any help would be appreciated. Thanks in
    advance.
    My cfmail code looks like this:
    <cfoutput>
    <cfmail to="[email protected]"
    from="a test person"
    subject="Request for yada yada">
    Name: #form.name#
    Article: #form.text#
    <cfmailparam file="#form.file1#"> (If i actually put
    in /tmp/test.txt which is a file on the drive i am mapped to, then
    the cfmail works and delivers .. but this doesn't help me for other
    people and their attachments)
    </cfmail>
    </cfoutput>
    This never goes to the email address.. instead it goes to
    undeliverable with this log. (p.s. I use my actual email address
    for the 'to')
    body: Name: test
    body: Article: t3est
    body: Files:
    /engines/coldfusionmx7/runtime/servers/coldfusion/SERVER-INF/temp/wwwroot-tmp/neotmp40024 .tmp
    file:
    /engines/coldfusionmx7/runtime/servers/coldfusion/SERVER-INF/temp/wwwroot-tmp/neotmp40024 .tmp
    file-type: application/octet-stream; name=neotmp40024.tmp
    file-disposition: attachment

    quote:
    Originally posted by:
    Gnatflea
    Thanks for the reply. I decided to try an cffile = upload for
    the file, but got an error message that time: (the .tmp file name
    is not the name of the file i attempted to attach). I really want
    to use the first option you gave and I thought i had done this
    correctly.
    The form field
    "/engines/coldfusionmx7/runtime/servers/coldfusion/SERVER-INF/temp/wwwroot-tmp/neotmp4009 2.tmp"
    did not contain a file.
    The error occurred in
    /engines/iplanet/v6.0/docs/intranet/exchange_action.cfm: line 12
    10 : #form.file1#
    11 : <cffile action = "upload"
    12 : fileField = "#form.file1#"
    13 : destination = "/logs/iplanet/docs/eol/secure/exchange/"
    14 : accept = "image/gif,application/msword">
    Things to check
    1. Does your form tag include enctype="multipart/form-data"
    If these suggestions don't work please post all of your code.
    Edit: Removed incorrect suggestion related to file
    path

  • CFMail timeout issues

    We have a set of scheduled tasks that run overnight and handle records reconcilliation in a database. the tasks take a long time to run...an hour or so.  When these processes complete, we use a CFMail tag to send out some results. We are consistently getting the following error:
    The request has exceeded the allowable time limit Tag: cfmail
    In the beginning of the CFM page, we use the following setting:
    <cfsetting enableCFoutputOnly = "No" requesttimeout="10800">
    Our CFAdmin has
    Connection Timeout(in seconds) set to 60. Changing that value would seem to cause problems elsewhere. Does anyone know why this would be occurring or how we can address it?

    in the mail log, we have instances of the following error, but not for this last occurrance:
    com.sun.mail.smtp.SMTPSendFailedException: [EOF] (on threadID of scheduler-0)
    in the server log, we have some instances of long running pages. Again, this did not occur the last time we got the error:
    "Warning","ajp-bio-8012-exec-248","09/12/12","02:12:30",,"Thread: ajp-bio-8012-exec-248, processing template: E:\WEB\(path removed).cfm, completed in 750 seconds, exceeding the 30 second warning limit"
    there is no instance in the exception log.

  • Using CFmail with gmail

    Hi, hope you can help me!
    I'm running developer, and I'm having some big issues getting
    cfmail to work. When I try to connect to gmail (smtp.gmail.com port
    587) I get this:
    This exception was caused by: javax.mail.MessagingException:
    530 5.7.0 Must issue a STARTTLS command first w67sm2418843pyg .
    And when I try smtp.mail.yahoo.com port 587, I get this:
    This exception was caused by:
    javax.mail.AuthenticationFailedException: Authentication Failed.
    I have checked, checked and triple checked username and
    password, and still can't get either of these to work. The STARTTLS
    command seems to be a security issue with gmail, but I haven't
    stumbled across any solutions in my forum searches.
    Any help would be Hugely appreciated,
    Here's the bare-bones code I'm using to test it
    mcpiper

    I've never heard of anyone who was able to get cfmail working
    over SSL.
    (A glaring omission Adobe!)
    First go to
    http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    and file a bug report / feature request.
    Then, this article talks about how to use CF with gmail's
    server but it requires a $1000 library purchase:
    http://www.roktech.net/devblog/index.cfm/2006/10/24/Cfmail-Google-Tools-For-Your-Domain-an d-SPAM
    You can use Stunnel (
    http://www.stunnel.org/) for
    free but you need mad skilz to do so.
    You can also probably gin something up with CFX_RawSocket and
    a little work.

  • Is CFMail and Mail (CFScript) the same?

    Is CFMail and Mail (CFScript) the same.... Reason I ask, is we are having a tonne of email problems in our application.  A person on my team has indicated that cfmail is more reliable and all the cfsript, "mail" implementations remain largely undelivered.  For this reason they are requesting the we change everything from mail to cfmail.   Has anyone heard ot this before?  I've got to believe that under the covers these are running the same bits of code...?
    CF10
    RHEL 6.2
    Thanks
    Lee

    lol, Thanks Adam!
    This is what he is observing...
    ---This issue lays outside our system.  Each mail sending mechanism results in a different SMTP message which gets routed differently.  We have issues with the reverse DNS lookup, the MX records, and other stuff.  If everything is correct and in place, it shouldn’t matter which mail mechanism we use in ColdFusion, but <cfmail> messages appear to be more successful in getting through.---
    I'm going to try and confirm the nature of the DNS issues and other stuff, but still can't see these even routing differently based on what you are saying. 
    Cheers
    Lee

  • Cfmail not working properly, Log files not updating

    I'm still trying to get this CFmail problem corrected.  The problem is CFmail is only send the mail out sporadically.  In many cases it will send out the mail and still put the message in the undeliverable folder.  My smtp server shows that the connection was opened and closed.
    I'm pretty sure that I'm dealing with a CF problem  since the mail logs are screwing up as well.  In the past when I'd have  a problem with CFmail I could go to my mail.log and see what was  happening.
    Those logs looked like this:
    "Error","scheduler-2","05/28/09","11:00:43",,"Invalid Addresses;    nested exception is:      javax.mail.SendFailedException: 550 No such  user (website_notification) Cached lookup "
    "Error","scheduler-2","05/28/09","11:00:43",,"Invalid Addresses;    nested exception is:      javax.mail.SendFailedException: 550 No such  user (wayneseattle) -ERR [email protected] not found "
    "Error","scheduler-2","05/28/09","11:00:43",,"Invalid Addresses;    nested exception is:      javax.mail.SendFailedException: 550 No such  user (ca-sl-broardmoor) Cached lookup "
    Now my logs look like this:
    "Error","scheduler-2","12/07/09","10:05:36",,""
    "Error","scheduler-4","12/07/09","10:17:22",,""
    "Error","scheduler-0","12/07/09","10:33:37",,""
    "Error","scheduler-0","12/07/09","10:53:53",,""
    Where did the error messages go?  
    Could this be a SMTP response message formating issue?  Any ideas in how  to figure this one out would be very much appreciated.

    Which version of CF are you using? You may have already checked this but under "Server Settings -> Mail -> Mail Logging Settings" there's an option box for "Log all mail messages sent                      by ColdFusion". If you have it unchecked you may not see all of that data.

  • 503 Issue RCPT TO: command before DATA command

    Can anyone shed some light on what is/could be causing this
    issue to keep
    showing up in the logs? We are having an issue of a cfmail
    tag not
    functioning and this appears to be tied to the issue.
    Also, we have a scheduled task that is just quitting for some
    reason. It
    will run fine for a an intermittent amount of time, then just
    stop for no
    apparent reason. Each time we delete and recreate the task
    and it just keeps
    repeating the same cycle. All it does is run a query to
    generate a csv file
    then move that csv file to another local server.
    Bryan Ashcraft (remove brain to reply)
    Web Application Developer
    Wright Medical Technology, Inc.
    Macromedia Certified Dreamweaver Developer
    Adobe Community Expert (DW) ::
    http://www.adobe.com/communities/experts/

    Thanks Kronin, we finally figured out what was going on with
    the mail tag.
    At least the one I was having a problem with. It turned out
    to be an issue
    on SQL Server. So that error must be coming from someone
    else's file and I
    have no clue which one.
    Now if I can figured out the scheduled tag issue, I would be
    doing great.
    Running the page manually works fine, but the scheduled task
    will not run.
    If you look at the scheduler log though, it says it ran when
    in didn't. Any
    one have any thoughts?
    Bryan Ashcraft (remove brain to reply)
    Web Application Developer
    Wright Medical Technology, Inc.
    Macromedia Certified Dreamweaver Developer
    Adobe Community Expert (DW) ::
    http://www.adobe.com/communities/experts/
    "Kronin555" <[email protected]> wrote in
    message
    news:ed1vb7$53h$[email protected]..
    > Post the code that's throwing this error.
    >
    > An SMTP conversation usually flows as follows:
    > HELO mydomain.com
    > MAIL FROM: [email protected]
    > RCPT TO: [email protected]
    > DATA
    > Subject: Hello
    >
    > blah blah blah
    > .
    >
    > That error makes it sound like the RCPT TO: line is
    being put below the
    > DATA
    > line. So, post the code that's causing this error and
    I'll take a look at
    > it.
    >
    >
    http://www.apps.ietf.org/rfc/rfc821.html#sec-4.1
    >

  • Cfmail undeliverable hell

    Running CF 9.0.  Every now and then a mail file will end up in the undelivr folder.  For example our external SMTP server is twitchy, and sometimes there is no connection (briefly).  Other times it's impossible to tell why the mail fails to be sent.  The mail log says "The ColdFusion mail spool encountered an invalid spool file..." and of course the file is moved to the undelivr directory.
    Well... once there I cannot get the mail to send by moving it back to the spool directory.  Once the file ends up as undeliverable it will not go.  It just gets re-sent to the undelivr folder.
    These emails are not malformed.  They are automated messages to me and other ediotors that something has occurred on the server.  Email addresses are good, etc. These scripts are many years old and they have always works flawlessly until CF9.  Trust me, the files should go out just like all the other ones that do.
    OK, I've searched this forum and the Internet for like problems and fixes.  I've tried restarting CF and then moving the files back to the spool, deleting the first file that didn't go out (if more than one file is in the undelivr folder), and saving as ASCII, UTF-8 no BOM, and even copying & pasteing the mail into notepad and saving back to the spool.  I've tried turning off TLS.  (The SMTP server is SSL)  I've tried turning off the spooler.  Nothing works.  No matter what I have tried, if it ends up in the undelivr directory it will not go out from the spooler.
    Has anyone any ideas?  I've been programming CF since version 4 and I can usually figure these types of things out, but this one is a tough one.  Any help would be appreciated.

    Phil,
    Thanks for your input.  I had your issue back in my CF 5 days, and ever since I have used your approach--using chr(60) and chr(62) for the greater than and less than symbols--to get around names with spaces.. 
    This problem I am dealing with here appears to be related to the cfmail files themselves.  Since I posted this, I tried a little experiment: One day when there were lots of undeliverables, I downloaded the undeliverable mail (our server is a virtual cloud server hosted by kickass.com) and uploaded them to a replicate virtual instance of the server on my desktop at home (I use VMWare to replicate the virtrual server as a development tool). Anyway, my VMWare server has the ability to mail out files through CF 9, so I uploaded the undeliverable mail to that spooler, and again, they would not go out, and were sent to the undelivr folder instead.  This happened after rebooting my VMWare server as well, so I think the inability to send undeliverable mail has something to do with the mail file itself *after* it is sent to the undelivr directory, not with any state that CF is in (locks, etc.).
    As I said above I have been comparing the spool files with the undeliverable files and I cannot see any differences in the files, but it appears that once these files are sent on to the undelivr folder thay are somehow marked as undeliverable and cannot be sent out even from another CF server.
    Now it is possible that somewhow my SMTP server on the other end is refusing to accept these files after one refusal--sort of recognizing them as not acceptable or spam or something, and I am going to try some tests to see if I can determine if this is the case. Again there is nothing special about these emails.  I have created a small program to resend the mail by copying and pasting the to, from, subject,. message, etc. information into a form to resend the mail, and they go out without any issues.  The underliverable emails occur only sporatically and are usually related to my SMTP server going offline every now and then.
    BTW I still can't believe I am the only person who has come up against these "permanently undeliverable" mail files.

Maybe you are looking for