There was an error while loading. Please reload this page.
Last reviewed: 2023-10-27
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