Sha256: f63225295fb5f4d7f1bd0f18d1f912c485f313f28e2ebca42fb2a67f690e6c43

Contents?: true

Size: 429 Bytes

Versions: 54

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

54 entries across 54 versions & 1 rubygems

Version Path
spree_core-3.3.0.rc4 lib/tasks/email.rake
spree_core-3.3.0.rc3 lib/tasks/email.rake
spree_core-3.1.7 lib/tasks/email.rake
spree_core-3.2.3 lib/tasks/email.rake
spree_core-3.2.2 lib/tasks/email.rake
spree_core-3.3.0.rc2 lib/tasks/email.rake
spree_core-3.1.6 lib/tasks/email.rake
spree_core-3.3.0.rc1 lib/tasks/email.rake
spree_core-3.1.5 lib/tasks/email.rake
spree_core-3.2.1 lib/tasks/email.rake
spree_core-3.2.0 lib/tasks/email.rake
spree_core-3.1.4 lib/tasks/email.rake
spree_core-3.2.0.rc3 lib/tasks/email.rake
spree_core-3.2.0.rc2 lib/tasks/email.rake
spree_core-3.2.0.rc1 lib/tasks/email.rake
spree_core-3.1.3 lib/tasks/email.rake
spree_core-3.1.2 lib/tasks/email.rake
spree_core-3.0.10 lib/tasks/email.rake
spree_core-3.1.1 lib/tasks/email.rake
spree_core-3.1.0 lib/tasks/email.rake