coldfusion计划任务不发送电子邮件 [英] coldfusion scheduled task not sending emails

查看:338
本文介绍了coldfusion计划任务不发送电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我们通过CFAdmin运行计划任务时,任务中的代码意在发送电子邮件不会发送该电子邮件。但是,如果我们在浏览器中自己运行任务网址,则会发送电子邮件。任何人都遇到类似的问题?

解决方案

很难说太多没有看到任何实际的代码,




  • 如果您通过CFSCHEDULE运行任务会发生什么?

  • 如果你创建一个新任务,只处理电子邮件位(即:注释掉最后一个,硬编码的值,如果需要的话)。

  • 当您说通过CFAdmin运行任务时,

  • 是什么日志?您是指点击运行任务按钮,还是您的意思是当它根据其时间表自动运行?它听起来像你的意思是前者,但它不是100%清晰,所以我想我会问。

  • 你使用服务器显示器或FusionReactor或某事看下来发生了什么

  • 您已将一些CFLOG条目添加到脚本中,以查看其是否在进程中的某个特定时间点死亡,或者是否存在意外的逻辑发生意味着电子邮件


  • 您可以列出自己采取的问题排查步骤, ul>

    (对不起,这不是一个回答,但它太长了,只是一个评论我想)。



    反馈一些更好的信息,我们可以从那里...


    When we run a scheduled task through CFAdmin, code inside the task that is meant to send an email does not send that email. But, if we run the task url in a browser on its own, the email is sent. Anybody come across a similar issue?

    解决方案

    It's difficult to say too much without seeing any actual code, but I can make some blind suggestions over and above the other responses which are all good.

    • what happens if you run the task via CFSCHEDULE?
    • what happens if yuo create a new task that ONLY does the email bit of the process (ie: comment-out everything else in the last, hard-coding values if need be)
    • which logs have you checked for signs of errors?
    • when you say you run the task via CFAdmin, do you mean "clicking the run task button", or do you mean that when it's run automatically according to its schedule? It sounds like you mean the former, but it's not 100% clear, so I figured I'd ask.
    • have you used the server monitor or FusionReactor or something to watch what's going on under the hood when the task runs?
    • have you put some CFLOG entries into the script to see if it's dying at some particular point in the process, or whether there's some unexpected logic occurring that means theemailing code never gets executed, or something?
    • can you list what troubleshooting steps you yourself have taken so as to minimise the number of blind suggestions people make

    (sorry, this isn't really an "answer", but it's too long for just a "comment" I think).

    Feed back some better info, and we can go from there...

    这篇关于coldfusion计划任务不发送电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆