class Spree::EmailDeliveryMailer < ActionMailer::Base
  def electronic_delivery_email(shipment)
    @inventory_units = shipment.inventory_units
    mail :to => shipment.order.user.email
  end
end

class Spree::EmailDeliveryMailer < ActionMailer::Base
  def electronic_delivery_email(shipment)
    @inventory_units = shipment.inventory_units
    mail :to => shipment.order.user.email
  end

  handle_asynchronously :electronic_delivery_email
end

Send license key email asynchronously.
Send license key email asynchronously.

We need to send emails asynchronously so that in case something,
the mailer will keep trying to send the email.
