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_core-3.7.14.1 lib/tasks/email.rake
spree_core-4.2.3.1 lib/tasks/email.rake
spree_core-4.1.13.1 lib/tasks/email.rake
spree_core-4.0.7.1 lib/tasks/email.rake
spree_core-4.2.3 lib/tasks/email.rake
spree_core-4.2.2 lib/tasks/email.rake
spree_core-4.2.1 lib/tasks/email.rake
spree_core-4.0.7 lib/tasks/email.rake
spree_core-3.7.14 lib/tasks/email.rake
spree_core-4.2.0 lib/tasks/email.rake
spree_core-4.2.0.rc5 lib/tasks/email.rake
spree_core-4.2.0.rc4 lib/tasks/email.rake
spree_core-4.2.0.rc3 lib/tasks/email.rake
spree_core-4.1.13 lib/tasks/email.rake
spree_core-4.0.6 lib/tasks/email.rake
spree_core-4.2.0.rc2 lib/tasks/email.rake
spree_core-3.7.13 lib/tasks/email.rake
spree_core-4.0.5 lib/tasks/email.rake
spree_core-4.1.12 lib/tasks/email.rake
spree_core-3.7.12 lib/tasks/email.rake