failed_emails.rb 393 B

123456789101112131415161718192021
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. FactoryBot.define do
  3. factory :failed_email do
  4. valid
  5. trait :valid do
  6. data { <<~MAIL.chomp }
  7. From: ME Bob <me@example.com>
  8. To: customer@example.com
  9. Subject: some subject
  10. Some Text
  11. MAIL
  12. end
  13. trait :invalid do
  14. data { 'not a mail' }
  15. end
  16. end
  17. end