app/models/events/event.rb
# Send a reminder to user, a day before event time
Send a reminder to user, a day before event time
Send a reminder to user a day before event time
def send_attendee_reminder!
    template = EmailTemplate.find(reminder_email_template_id)
    return false if template.nil?
    attendees.tomorrow_reminder.each do |attendee|
        EmailContact.log(
          attendee.invitable_id, 
          TemplateMailer.deliver(template.create_email_to(attendee)),
          nil, nil,
          attendee
        )
    end
  end
def send_attendee_reminder! template = EmailTemplate . find ( reminder_email_template_id ) return false if template . nil? attendees . tomorrow_reminder . each do | attendee | EmailContact . log ( attendee . invitable_id , TemplateMailer . deliver ( template . create_email_to ( attendee ) ) , nil , nil , attendee ) end end
Send a reminder to user, a day before event time
Send a reminder to user a day before event time