This task queue provides for an email service that can be utilized by CU Libraries.
- Cybercommons API
- Task Queue intalled within API(This Repository)
-
Update
cybercomsecret within kubernetes clusterCELERY_IMPORTS add `emailCULibq` CELERY_SOURCE add `git+https://github.com/culibraries/emailCULibq@main` -
Redeploy
cybercom-celerydeployment
Post to Celery Task URL with the following data.
{
"queue": "celery",
"args": ["< receiver_email >","noreply@colorado.edu","test email"],
"kwargs": {"template":"default_template.html.j2","template_data":{"name":"Mark"}},
"tags": []
}
-
Set Template Name with html or plain
name.< html or plain >.j2
-
Configure template --> Jinja2