Delayed Mailing
https://secure.gravatar.com/avatar/8446244ba01096058381c713b4b542f5.png?d=wavatar&s=28
Wed Jul 27 20:03 Authored by lsproc

Setting up Delayed Mailing  

The mailing module can either be set up to send email messages immediately, or to send them periodically on a delayed mailing basis. If you wish to use this delayed mailing setup, some extra configuration is necessary.

Turning on the feature  

Setting to change
Setting to change
The first step in the process is to turn on this function, which can be done from the Email Notification settings, available in Configuration. The setting is shown to the right, and should be set to Use email queueing. After making the change, remember to press Save.

Setting the schedule  

After saving, a scheduled task must be set up, using the tbg_cli script. As with other CLI calls, the working directory that the script is executed from must be the same as the directory tbg_cli exists in, so you may wish to write a script to handle this:
  cd /var/www/tbg
  php ./tbg_cli (parameters here - see below)
For further details on the CLI, see the guide's CLI section.

The command you will need to run is:
  tbg_cli mailing:process_mail_queue SERVERNAME
This will process all mail messages in the mail queue, and send them off to their destinations. If there is an error sending a message, the CLI will display this message in the standard output (be it the console or a log).

SERVERNAME must be set to the hostname of the server. If The Bug Genie can be found at support.mysite.com/bugs, you would enter support.mysite.com here.

If you only want to send out a certain number of emails every time the script is executed, this can also be specified:
  tbg_cli mailing:process_mail_queue SERVERNAME --limit=10
You can substitute 10 for the number of emails you wish to send. With this setup, every time the scheduled task is executed, 10 emails (or however many you choose) will be sent.

For testing purposes, it is also possible to run the script in test mode. In this setup, the script will execute and report that it is working, but will not send any messages:
  tbg_cli mailing_process_mail_queue SERVERNAME --test=yes
Once you have the script set up to your liking, you can add it as a cronjob on UNIX systems, or a Scheduled Task on Windows.

Categories

Mailing

Attachments 1

Comments 12

 4EverMaAT
Feb 26, 2016 (01:26)
Cancel

Can you give an example of cronjob syntax?

 4EverMaAT
Feb 26, 2016 (01:28)
Cancel

Can you give an example of cronjob syntax?

 4EverMaAT
Feb 26, 2016 (01:28)
Cancel

Can you give an example of cronjob syntax?

 4EverMaAT
Feb 26, 2016 (01:29)
Cancel

Can you give an example of cronjob syntax?

 abkrim
Apr 12, 2016 (07:12)
Cancel

For further details on the CLI, see the guide's CLI section.

Link guide's CLI Section it's a broken link (almost on Opera & Mac OS X)

 abkrim
Apr 12, 2016 (07:13)
Cancel

For further details on the CLI, see the guide's CLI section.

Link guide's CLI Section it's a broken link (almost on Opera & Mac OS X)

 abkrim
Apr 12, 2016 (07:13)
Cancel

For further details on the CLI, see the guide's CLI section.

Link guide's CLI Section it's a broken link (almost on Opera & Mac OS X)

 abkrim
Apr 12, 2016 (07:32)
Cancel
Confused wiki.

ISSUE TRACKER URL
This is the full URL to the issue tracker, used when sending outgoing emails. If this isn't configured, you will not be able to use the outgoing email feature.

For default show https://<URI>:443

Try use but not work,show message below, but not send anything

php ./tbg_cli mailing:process_mail_queue hq.tamainut.com
Processing mail queue ...
Email(s) to process: 4
Not processing queue...

Also bug when comementing ... after put bug for comment, I see too many comments.

Also too many bugs on to many parts on The Bug Genie

 patv
Sep 30, 2016 (05:33)
Cancel

I have install TBG on WAMP server. I am not a PHP guy, can anyone please suggest how to configure email in TBG so any new issue I can post should come notification in my email.

I want to use gmail account to send email from TBG.

Thank you! Pat