Sha256: 8c9442ae603dc8c520071cc6c9af54b3577661e6572d2921244ef8a32e202a6f

Contents?: true

Size: 380 Bytes

Versions: 43

Compression:

Stored size: 380 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
    raise ArgumentError, "Must pass EMAIL environment variable. Example: EMAIL=spree@example.com bundle exec rake email:test" unless ENV['EMAIL'].present?
    Spree::TestMailer.test_email(ENV['EMAIL']).deliver!
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
solidus_core-2.5.2 lib/tasks/email.rake
solidus_core-2.5.1 lib/tasks/email.rake
solidus_core-2.5.0 lib/tasks/email.rake
solidus_core-2.5.0.rc1 lib/tasks/email.rake
solidus_core-2.5.0.beta2 lib/tasks/email.rake
solidus_core-2.5.0.beta1 lib/tasks/email.rake
solidus_core-2.4.2 lib/tasks/email.rake
solidus_core-2.3.1 lib/tasks/email.rake
solidus_core-2.4.1 lib/tasks/email.rake
solidus_core-2.2.2 lib/tasks/email.rake
solidus_core-2.1.1 lib/tasks/email.rake
solidus_core-2.0.3 lib/tasks/email.rake
solidus_core-1.4.2 lib/tasks/email.rake
solidus_core-1.3.2 lib/tasks/email.rake
solidus_core-2.4.0 lib/tasks/email.rake
solidus_core-2.4.0.rc1 lib/tasks/email.rake
solidus_core-2.4.0.beta1 lib/tasks/email.rake
solidus_core-2.3.0 lib/tasks/email.rake
solidus_core-2.3.0.rc3 lib/tasks/email.rake
solidus_core-2.3.0.rc2 lib/tasks/email.rake