Solved

Scheduled task fails in Coldfusion

Posted on 2008-10-23
6
364 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
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

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

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…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
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.

717 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