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.2.9 lib/tasks/email.rake
spree_core-3.1.14 lib/tasks/email.rake
spree_core-3.3.6 lib/tasks/email.rake
spree_core-3.2.8 lib/tasks/email.rake
spree_core-3.1.13 lib/tasks/email.rake
spree_core-3.3.5 lib/tasks/email.rake
spree_core-3.3.4 lib/tasks/email.rake
spree_core-3.2.7 lib/tasks/email.rake
spree_core-3.1.12 lib/tasks/email.rake
spree_core-3.3.3 lib/tasks/email.rake
spree_core-3.2.6 lib/tasks/email.rake
spree_core-3.1.11 lib/tasks/email.rake
spree_core-3.1.10 lib/tasks/email.rake
spree_core-3.3.2 lib/tasks/email.rake
spree_core-3.2.5 lib/tasks/email.rake
spree_core-3.1.9 lib/tasks/email.rake
spree_core-3.3.1 lib/tasks/email.rake
spree_core-3.2.4 lib/tasks/email.rake
spree_core-3.1.8 lib/tasks/email.rake
spree_core-3.3.0 lib/tasks/email.rake