channels.rb 648 B

1234567891011121314151617181920212223242526272829
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. Channel.create_if_not_exists(
  3. area: 'Email::Notification',
  4. options: {
  5. outbound: {
  6. adapter: 'smtp',
  7. options: {
  8. host: 'host.example.com',
  9. user: '',
  10. password: '',
  11. ssl: true,
  12. },
  13. },
  14. },
  15. group_id: 1,
  16. preferences: { online_service_disable: true },
  17. active: false,
  18. )
  19. Channel.create_if_not_exists(
  20. area: 'Email::Notification',
  21. options: {
  22. outbound: {
  23. adapter: 'sendmail',
  24. },
  25. },
  26. preferences: { online_service_disable: true },
  27. active: true,
  28. )