22 lines
890 B
Ruby
22 lines
890 B
Ruby
# -*- coding: iso-8859-1 -*-
|
|
class UserMailer < ActionMailer::Base
|
|
default :from => "info@contact-o-rama.com"
|
|
|
|
def next_weeks_birthday_notification(email, birthdays)
|
|
@birthday_contacts = birthdays
|
|
mail(:to => email, :subject => "Contact-o-Rama: Geburtstage in den nächsten 7 Tagen.")
|
|
end
|
|
|
|
def upcoming_birthdays_notification(email, birthdays_2days, birthdays_7days)
|
|
@birthday_contacts_2days = birthdays_2days
|
|
@birthday_contacts_2days = birthdays_7days
|
|
mail(:to => email, :subject => "Contact-o-Rama: anstehende Geburtstage")
|
|
end
|
|
|
|
# obsolete
|
|
# def next_weeks_birthday_notification(birthdays)
|
|
# logger.debug "----------------< we don't send no email, yet >----------------------"
|
|
# @birthday_contacts = birthdays
|
|
# mail(:to => "contact-o-rama@gasbottle-county.eu", :subject => "Contact-o-Rama: Geburtstage in den nächsten 7 Tagen.")
|
|
# end
|
|
end
|