Is it possible to make Mantis send email in the background?

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
kelvinlow
Posts: 5
Joined: 10 May 2016, 07:51

Is it possible to make Mantis send email in the background?

Post by kelvinlow »

Hello I'm new to Mantis.
When someone reporter a new issue,
Mantis will send notification email through Gmail to developers.
In my case, there are about 10 developers are going to receive notification.
Mantis send email after clicking the submit button, and let the reporter waiting.

This make reporters have bad user experience,
I hope there is solution to fix this problem.
It will be the better when email notifications are sent after issue submitted.
Or, is there any way to show the process of sending email?

Thank you!
atrol
Site Admin
Posts: 8573
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Is it possible to make Mantis send email in the backgrou

Post by atrol »

Add the following line to file config_inc.php and setup a cron job

Code: Select all

$g_email_send_using_cronjob = ON;
From admin guide
$g_email_send_using_cronjob
Disables sending of emails as soon as an action is performed. Emails are instead queued and must be sent by running scripts/send_emails.php periodically. This script can only be executed from the CLI, not from the web interface, for security reasons.

Enabling this option can help with performance problems if large numbers of emails are generated or mail delivery is slow by not delaying page execution when sending emails.
Please use Search before posting and read the Manual
kelvinlow
Posts: 5
Joined: 10 May 2016, 07:51

Re: Is it possible to make Mantis send email in the backgrou

Post by kelvinlow »

Thanks you, you helped me a lot and it works awesome :D
kelvinlow
Posts: 5
Joined: 10 May 2016, 07:51

Re: Is it possible to make Mantis send email in the backgrou

Post by kelvinlow »

Can you please tell me more about setting schedule to send those email in queue on a Windows platform? Thank you
Post Reply