Skip to content

Instantly share code, notes, and snippets.

@airspeed
Last active December 18, 2015 15:39
Show Gist options
  • Save airspeed/5805499 to your computer and use it in GitHub Desktop.
Save airspeed/5805499 to your computer and use it in GitHub Desktop.
Schickt an alle T-Online Kunden ihre Bestellbestätigung und Rechnung wieder, die sie wohl aufgrund unserer Blacklistung bei der Telekom nicht erhalten haben.
def t_online(filename)
File.foreach(filename) do |f|
InvoiceMailer.sent_order_confirmation(Customer.where(:email => f.squish).first.order_carts.last).deliver
InvoiceMailer.sent_invoice(Customer.where(:email => f.squish).first.order_carts.last.invoices.last).deliver
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment