You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
compwron edited this page Feb 21, 2022
·
1 revision
When I do it by hand, this is what I run:
def export_checkin_notes(user)
body = user.checkins.sort_by(&:date).map { |i| [i.date, i.note].join(",") }
ActionMailer::Base.mail(
from: Rails.application.secrets.smtp_email_from,
to: user.email,
subject: "Flaredown data export",
body: body
).deliver
end
existing export is: DataExportJob.perform_now(user.id)