The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi,
From time to time I go to: ACP - Maintenance - Diagnostics - Email And send myself an email so I can see if the SMTP server I'm using to send vBulletin emails is working. I would like to have this job being performed automatically on a daily basis. I guess I have to setup a cron job in the ACP but I don't know what to put in "Filename"... I guess I have to code a small vBulletin powered script that will send the email and place it at /includes/cron/ however I'm not a programmer so I don't know what code should I put on that file. Could you please help me? Thanks. |
#2
|
|||
|
|||
![]()
Sorry for the late reply, but if you're still looking for this, you could copy one of the existing files in includes/cron and change it to send your mail (the file name you enter when creating a scheduled task is the name of a php file in includes/cron).
Another way to do it would be to piggy back on the daily cleanup task by writing a plugin for your mail code and using hook cron_script_cleanup_daily. As for the code, the code that sends the diagnostic email is in admincp/diagnostic.php, in the section that starts with the "Start mail test" comment. That code's written to display any errors that happen when trying to send an email, so it might be more complicated than you need. Or you could copy it and send any errors to yourself in a PM or something like that. Anyway, I'm sorry I don't have time right now to work out the exact code. |
Благодарность от: | ||
tbworld |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|