Last active
December 18, 2015 15:39
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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