-
-
Notifications
You must be signed in to change notification settings - Fork 475
Emails
compwron edited this page Oct 27, 2023
·
4 revisions
Table of Contents generated with DocToc
https://app-smtp.brevo.com/log
https://casa-qa.herokuapp.com/rails/mailers
just in case we have to do this again
ActiveSupport::Notifications.unsubscribe "process.action_mailer"
user = User.find_by(email: "emailllll")
mailer = ActionMailer::Base.new
mailer.attachments["case-contacts-report-#{Time.zone.now.to_i}.csv"] = {mime_type: 'text/csv', content: case_contact_report.to_csv }
mailer.mail(
from: "no-reply@#{ENV["DOMAIN"]}",
to: user.email,
subject: "Custom report for ",
body: "Custom report for ",
).deliver