namespace :email do
  desc 'Sends test email to specified address - Example: EMAIL=spree@example.com bundle exec rake test:email'
  task test: :environment do
    unless ENV['EMAIL'].present?
      raise ArgumentError, "Must pass EMAIL environment variable. " \
                           "Example: EMAIL=spree@example.com bundle exec rake test:email"
    end
    Spree::TestMailer.test_email(ENV['EMAIL']).deliver_now
  end
end

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

Fix documentation typo on mailer rake task.
Fix documentation typo on mailer rake task.

Fixes #6326
