19 lines
613 B
Ruby
19 lines
613 B
Ruby
# -*- coding: utf-8 -*-
|
|
class UserMailer < ActionMailer::Base
|
|
default :from => "contact-o-rama@gasbottle-county.eu",
|
|
:bcc => "cor@gasbottle-county.eu"
|
|
|
|
# obsolete
|
|
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, num_days)
|
|
return if birthdays.blank?
|
|
|
|
@birthday_contacts = birthdays
|
|
@num_days = num_days
|
|
mail(:to => email, :subject => "Contact-o-Rama: anstehende Geburtstage")
|
|
end
|
|
end
|