
| Current Path : /var/www/web-klick.de/dsh/50_dev2017/1313__procpyjs/doc/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/web-klick.de/dsh/50_dev2017/1313__procpyjs/doc/email.md |
Sending Email
-------------
##Backend
For sending e-mails I'm using [Mailgun](https://mailgun.com) service.
> api-key: key-9bab02f84a92801800096e882ab69035
> domain : sandbox6f2534dedef141a4a317197ac16e03f1.mailgun.org
This information is needed, when using the service in your application.
##Example
Under */test* there is an example: *email.js*.
What this does is:
1. Create two delayed email jobs:
1. Renewal mail job (Delay: 1min)
2. Expire mail job (Delay: 10min)
2. Processing the jobs within redis data-store
After executing *grunt mailer* you can open your browser and point it to **localhost:3030**.
There you can observe the countdown of the jobs and their state-switching (Delayed->Active->Completed) behaviour.