The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Setting up in scheduled tasks email sending
Hello to all,
I am trying to set up an email task to send emails using an external php script ... When I clic in the "Scheduled Tasks Manager" on "Run Now" the email is sent perfectly ... But when the task manager runs it I never receive the email and I also cannot find any log ... Can someone help me?? this is the code: PHP Code:
This is another script that has the same the same problem an uses the vb_mail class PHP Code:
|
#2
|
|||
|
|||
When you edit the scheduled task, what do you have for the "Active" and "Log Entries" settings? And what did you choose for "Hour", "Minute", etc? If you have "Log Entries" set to yes and you're not seeing anything in the log then it seems like it must not be running for some reason.
|
#3
|
|||
|
|||
Quote:
Thanks very much for your answer! I have Log Entries set up to YES ... and active set up to YES too. For what reason it could not run??? the Schedule task manager says "One minute Ago" and so on ... Greetings, Eddie |
#4
|
|||
|
|||
You are right, if the scheduled task manager says "One minute Ago" then it must be running your task. I tried the second code you posted (using vbmail) and it works for me. I had to change the last part like this:
Code:
//if ($emails) //{ log_cron_action('', $nextitem, 1); //} because that script has no $emails, but when I do that I get emails and a line in the scheduled task log. I can't try the first script because I don't have the email classes. Maybe try commenting out your "echo" lines and see if that makes any difference. |
#5
|
|||
|
|||
Hello kh99,
Thanks again for your answer ... I still have the same problem ... when I clic on run task ... everything works fine (i can see the log now) But if vbulletin does the job automatically I cannot see the log and I do not receive the emails. This is the script I have: PHP Code:
Thanks again, Eddie |
#6
|
|||
|
|||
I don't see any errors - that's what my script looked like when I tried it (except of course I also changed the email address). What you posted has a blank line at the beginning - I'm not sure if your file has that, but if it does you might try removing it so that <?php is the very first thing in the file.
Is your site active? If you have "Use Mailqueue System" and "Use Cron Based Sending" set to yes in the email options, then I guess it's possible that you have emails waiting in the queue. |
#7
|
|||
|
|||
Thanks again kh99,
The strange thing is that there is not even a log :S I have now: Use Cron Based Sending = Yes Use Mailqueue System = Yes Can I check somewhere if there are emails in the queue? I have scheduled the task directly on Cpanel now ... I would wish I could make it work from vbulletin Greetings, Eddie |
#8
|
|||
|
|||
Yes, it seems like there should be a log entry.
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|