Answers for "Action Mailer attachment as URL"

0

Action Mailer attachment as URL

def job_apply(current_tenant, applicant)
   @current_tenant = current_tenant
   @applicant = applicant

   file = open(applicant.resume.url).read
   attachments[applicant.resume] = file

   email_with_name = "#{@current_tenant.name} <#{@current_tenant.help_email}>"
   mail(from: email_with_name, to: applicant.job.apply_email, subject: "New Job Application")
 end
Posted by: Guest on July-17-2020

Code answers related to "Action Mailer attachment as URL"

Browse Popular Code Answers by Language