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 [2008/10/29 04:25] – (old revision restored) 127.0.0.1mantisbt: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.
 +
  
  
Line 35: 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 44: 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 =====
  
-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/core/send_emails.php</code>+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 54: Line 59:
  
 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.
 +
  
mantisbt/setting_up_mail_queuing.1225268730.txt.gz · Last modified: 2009/11/03 15:39 (external edit)

Driven by DokuWiki