Sha256: d03307d6925789eb0f18d679836768f6fbe448a60f40b1d5e4dc2224b2d30a8e

Contents?: true

Size: 516 Bytes

Versions: 18

Compression:

Stored size: 516 Bytes

Contents

# frozen_string_literal: true

namespace :email do
  desc 'Sends test email to specified address - Example: EMAIL=spree@example.com bundle exec rake email:test'
  task test: :environment do
    Spree::Deprecation.warn("rake email:test has been deprecated and will be removed with Solidus 3.0")

    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

18 entries across 18 versions & 1 rubygems

Version Path
solidus_core-2.10.5 lib/tasks/email.rake
solidus_core-2.11.3 lib/tasks/email.rake
solidus_core-2.11.2 lib/tasks/email.rake
solidus_core-2.11.1 lib/tasks/email.rake
solidus_core-2.10.3 lib/tasks/email.rake
solidus_core-2.11.0 lib/tasks/email.rake
solidus_core-2.10.2 lib/tasks/email.rake
solidus_core-2.9.6 lib/tasks/email.rake
solidus_core-2.10.1 lib/tasks/email.rake
solidus_core-2.9.5 lib/tasks/email.rake
solidus_core-2.10.0 lib/tasks/email.rake
solidus_core-2.9.4 lib/tasks/email.rake
solidus_core-2.9.3 lib/tasks/email.rake
solidus_core-2.9.2 lib/tasks/email.rake
solidus_core-2.10.0.beta1 lib/tasks/email.rake
solidus_core-2.9.1 lib/tasks/email.rake
solidus_core-2.9.0 lib/tasks/email.rake
solidus_core-2.9.0.rc.1 lib/tasks/email.rake