User Tools

  • Logged in as: anonymous (anonymous)
  • Log Out

Site Tools


mantisbt:setting_up_mail_queuing

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
mantisbt:setting_up_mail_queuing [2007/01/09 11:06] – added question jmunromantisbt:setting_up_mail_queuing [2013/10/04 12:15] (current) – http://www.mantisbt.org/bugs/view.php?id=16450 mahindra
Line 27: Line 27:
  
   * Set 'email_send_using_cronjob' configuration item to ON.   * Set 'email_send_using_cronjob' configuration item to ON.
 +
 +
  
 ===== Sending the Emails ===== ===== Sending the Emails =====
Line 34: Line 36:
 Following is the command line we need to execute: Following is the command line we need to execute:
 <code> <code>
-php /path/to/mantis/core/send_emails.php+php /path/to/mantis/scripts/send_emails.php
 </code> </code>
  
Line 43: Line 45:
  
 For hosted environments offering cPanel, the above information will be set after clicking "Cron jobs", "Advanced (Unix Style)" You will typically want to also provide your email as the address to which the cronjob output should be sent.  This will help you to make sure that the script is running successfully.  Once this is established, you should remove your email to avoid getting an email every minute. For hosted environments offering cPanel, the above information will be set after clicking "Cron jobs", "Advanced (Unix Style)" You will typically want to also provide your email as the address to which the cronjob output should be sent.  This will help you to make sure that the script is running successfully.  Once this is established, you should remove your email to avoid getting an email every minute.
 +
 +In shared environments that supports cron jobs only with lynx, the check "send_emails.php is not allowed to run through the web server" possibly has to be modified.
 +Bearing in mind that this change basically allows anyone knowing the URL to execute the script, which could potentially lead to DOS attacks move the script to a non-standard location
 +or try to secure it so it can externally eg only be run from localhost or with .htaccess parameters.
 +
 +===== Using the Windows Task Scheduler =====
 +
 +Using the windows task scheduler is just as easy as using cron jobs. Just add a new task that is executing <code>/path/to/php-installation/php-cgi.exe /path/to/mantis/scripts/send_emails.php</code>
 +
  
  
Line 49: Line 60:
 Please add any comments or questions in this sections.  Feel free to apply corrections or additions to the main body of the text. Please add any comments or questions in this sections.  Feel free to apply corrections or additions to the main body of the text.
  
-  * How does this work in Windows?  Is the Windows Task Scheduler a valid alternative to cronjob?+
mantisbt/setting_up_mail_queuing.1168358817.txt.gz · Last modified: 2008/10/29 04:31 (external edit)

Driven by DokuWiki