Sha256: 3cf642acde07fbccbe12130afeaabca18b57f41277d949c75bdade23a5d94fdc

Contents?: true

Size: 429 Bytes

Versions: 121

Compression:

Stored size: 429 Bytes

Contents

namespace :email do
  desc 'Sends test email to specified address - Example: EMAIL=spree@example.com bundle exec rake email:test'
  task test: :environment do
    unless ENV['EMAIL'].present?
      raise ArgumentError, 'Must pass EMAIL environment variable. ' \
                           'Example: EMAIL=spree@example.com bundle exec rake email:test'
    end
    Spree::TestMailer.test_email(ENV['EMAIL']).deliver_now
  end
end

Version data entries

121 entries across 121 versions & 2 rubygems

Version Path
spree_emails-4.10.1 lib/tasks/email.rake
spree_emails-4.10.0 lib/tasks/email.rake
spree_emails-4.9.0 lib/tasks/email.rake
spree_emails-4.8.3 lib/tasks/email.rake
spree_emails-4.8.2 lib/tasks/email.rake
spree_emails-4.7.3 lib/tasks/email.rake
spree_emails-4.6.6 lib/tasks/email.rake
spree_emails-4.5.5 lib/tasks/email.rake
spree_core-4.0.9 lib/tasks/email.rake
spree_core-4.1.15 lib/tasks/email.rake
spree_core-4.2.7 lib/tasks/email.rake
spree_emails-4.3.3 lib/tasks/email.rake
spree_emails-4.4.1 lib/tasks/email.rake
spree_emails-4.5.4 lib/tasks/email.rake
spree_emails-4.6.5 lib/tasks/email.rake
spree_emails-4.7.1 lib/tasks/email.rake
spree_emails-4.6.4 lib/tasks/email.rake
spree_emails-4.7.0 lib/tasks/email.rake
spree_emails-4.6.3 lib/tasks/email.rake
spree_emails-4.6.2 lib/tasks/email.rake