todo_mail_settings.py 998 B

12345678910111213141516171819202122232425262728293031
  1. #LOGIN_REDIRECT_URL = "todo:lists"
  2. #LOGIN_URL = "/accounts/login/"
  3. #LOGOUT_REDIRECT_URL = "/accounts/login/"
  4. # TODO-specific settings
  5. TODO_STAFF_ONLY = False
  6. TODO_DEFAULT_LIST_SLUG = 'tickets'
  7. TODO_DEFAULT_ASSIGNEE = None
  8. TODO_PUBLIC_SUBMIT_REDIRECT = '/'
  9. from todo.mail.producers import imap_producer
  10. from todo.mail.consumers import tracker_consumer
  11. from todo.mail.delivery import smtp_backend, console_backend
  12. # email notifications configuration
  13. # each task list can get its own delivery method
  14. IS_SEND_EMAIL = False
  15. # TODO_MAIL_BACKENDS = {
  16. # # mail-queue is the name of the task list, not the worker name
  17. # "mail-queue": smtp_backend(
  18. # host="*********",
  19. # port=465,
  20. # use_ssl=True,
  21. # username="*********",
  22. # password="*********",
  23. # # used as the From field when sending notifications.
  24. # # a username might be prepended later on
  25. # from_address="*******",
  26. # # additionnal headers
  27. # headers={}
  28. # ),
  29. # }