-
Notifications
You must be signed in to change notification settings - Fork 15
send user notes export
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)