Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. # I think better to get this settings from environment variables (As it works now).
  2. # AMQP Configuration.
  3. amqp:
  4. host: localhost
  5. port: 5672
  6. user: guest
  7. password: guest
  8.  
  9. # I think better to keep SMTP settings in environment variables.
  10. # SMTP Configuration.
  11. smtp:
  12. host: smtp.sendgrid.net
  13. port: 25
  14. user: apikey
  15. password: *************************
  16. sender:
  17. name: Postmaster
  18. email: noreply@postmaster.com
  19.  
  20. # Supported languages.
  21. languages:
  22. - name: "English"
  23. code: EN
  24. - name: "Russian"
  25. code: RU
  26. - name: "Ukrainian"
  27. code: UA
  28.  
  29. events:
  30. - name: Email Confirmation
  31. key: user.email.confirmation.token
  32. templates:
  33. - language: EN # Should be from the list of languages.
  34. subject: Email Confirmation
  35. # You can eigher mount file with template or put it here.
  36. # template_path: /etc/email_confirmation_en.tpl
  37. # OR
  38. template: |
  39. <html>
  40. <body>
  41. <p>Hello {{ ... }}</p>
  42. <p>
  43. <a href="{{ ... }}">Confirm your account</a>
  44. </p>
  45. </body>
  46. </html>
  47. - language: RU # Should be from the list of languages.
  48. subject: Подтверждение Пароля
  49. # You can eigher mount file with template or put it here.
  50. # template_path: /etc/email_confirmation_ru.tpl
  51. # OR
  52. template: |
  53. <html>
  54. <body>
  55. <p>Привет {{ ... }}</p>
  56. <p>
  57. <a href="{{ ... }}">Подтвердить ваш аккаунт</a>
  58. </p>
  59. </body>
  60. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement