Uploaded image for project: 'Railo'
  1. Railo
  2. RAILO-977

CFMail fails when executed as part of a scheduled task

    Details

    • Steps to Reproduce:
      Hide

      1) Create a simple .cfm page that sends a test email to an email address to which you have access.
      2) Execute the file from the browser. Confirm that the email is sent as expected.
      3) Create a scheduled task to execute the said .cfm page.
      4) After the scheduled task is run, note that the email is not sent.
      5) Check the Tasks area of the admin to see if the email is being held as an open task.

      Show
      1) Create a simple .cfm page that sends a test email to an email address to which you have access. 2) Execute the file from the browser. Confirm that the email is sent as expected. 3) Create a scheduled task to execute the said .cfm page. 4) After the scheduled task is run, note that the email is not sent. 5) Check the Tasks area of the admin to see if the email is being held as an open task.

      Description

      I have a scheduled task that runs every 5 minutes. It uses some criteria to determine whether to send some emails. When I run the scheduled task as a .cfm page in a web browser, it works fine and the emails are sent as expected. When it is run as a scheduled task, the emails do not get sent out. Sometimes I can see the failed emails in the Tasks area of the Web admin. The error message part of the list of executed tasks is blank.

      UPDATE 10/16/10
      I think I got this sorted. It has something to do with passing the cc field as an empty string. If I make sure not to do that the mailing function seems to work. So it's not related to the fact that it's a scheduled task.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                micstriit Michael Offner
                Reporter:
                joshnathanson Josh Nathanson
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: