Solved

Scheduled task fails in Coldfusion

Posted on 2008-10-23
6
360 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
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

If I have to fix slow responding website my first thoughts are server side optimizations: the database may not be optimized or caching is not enabled, or things like that. We often overlook another major part of our web application: the client. We o…
A publishing tool, a Version Control System, or a Collaboration Platform! These can be some of the defining words for the two very famous web-hosting Git repositories: Bitbucket and Github. Git is widely used amongst the programmers and developers f…
This video teaches users how to migrate an existing Wordpress website to a new domain.
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.

815 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

9 Experts available now in Live!

Get 1:1 Help Now