Skip to main content

Pixwel Email

Templates

Template emails are stored in /api/mails.

Testing

You can test email with maildev on demo and development. Staging emails are sent to maildev on the Jenkins server at http://stagingmaildev.pixwel.com/

Batching

Mails are batched up and sent using the SendEmails command. Until this is triggered, nothing gets sent, unless that type of Email notification is set to immediate: Setting mail preferences The SendEmails command is triggered by the send-emails queue, so if you are not getting events processed, this is likely why - that these workers are not running. See services documentation for details.

Queues on docker

Docker runs the same services as any other environment. Do be aware, however:
  • If you’ve cloned the production database, there might be massive queues of events to process that you don’t want to run.
  • You might prefer to run the commands directly in the console so you can see what’s going on in real time
So, you can run them manually in the terminal:
vagrant ssh # if you're not already SSH'd into your VM
cd /opt/pixwel/pixwel-api
# Run the emails queue
./libraries/lithium/console/li3 worker-sqs --queue=emails &
# Run the send-emails queue
./libraries/lithium/console/li3 worker-sqs --queue=send-emails &
# Run the notifications queue
./libraries/lithium/console/li3 worker-sqs --queue=notifications &

Back to docs index | Next page in recommended reading order >>