Solved

Scheduled task fails in Coldfusion

Posted on 2008-10-23
6
359 Views
Last Modified: 2013-12-24
I have a coldfusion page that uses cfmail to send messages upon opening.  The page works if I manually open it.  I have tried to run the page as a scheduled task using Coldfusion Administrator.  I do get a message in the scheduler.log when the task is triggered, but no mail is sent (telling me the task failed).

Any suggestions?

JK
0
Comment
Question by:csaexperts
6 Comments
 
LVL 19

Expert Comment

by:erikTsomik
ID: 22790961
make sure that smtp is setup on your server
0
 
LVL 8

Expert Comment

by:eszaq
ID: 22794150
erikTsomik might be right.

But honestly... I did not understand your question. When you say "The page works if I manually open it.", do you mean email gets sent?

Or you are talking about error handling page that is supposed to send messages to you when the other page fails? Please clarify your question. Provide code snippet.

BTW, does your page require login... Because if it does that would explain why it works when you open it manually and not from cfchedule. But again - I'll stop guessing - I did not understand what you are asking.
0
 
LVL 10

Expert Comment

by:Mr_Nil
ID: 22795674
Are you expecting an email when the task has failed or when it has processed correctly?
What does the message in the schedule log actually say?
Have you checked the mail logs and the undelivr folder?

Have you tried adding cflog tags to your task, so that the steps in the process are sent to a custom log file in the CF Admin?



0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 3

Expert Comment

by:andrewlorien
ID: 22800826
Do you need a password to get to that page on the server (eg  .htaccess )?  if so you'll need to set the authentication details for the scheduled task.  it's easy to forget that your browser is automatically sending your username and password.

0
 

Accepted Solution

by:
csaexperts earned 0 total points
ID: 23526756
The only way I was able to get this to function was to put the page into a different folder on the server.  Don't know if it mattered which folder it was.  It is working now.
0
 
LVL 8

Expert Comment

by:eszaq
ID: 25510439
You haven't answered a single question coming from people who tried to help you. Was it password protected folder where script resided originally?
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Search on a site 5 95
UPLOAD FILE TO Web API USING POST 5 109
Nameserver and MX Record 2 63
Public IP Address Amazon Servers 2 45
Developer tools in browsers have been around for a while, yet they are still heavily underused by developers. Developers still fix html or CSS then refresh page to see effect, or they put alert or debugger in JavaScript and then try again and again …
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This video teaches users how to migrate an existing Wordpress website to a new domain.
Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now