Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
update the code of app/mailers/notification_mailer.rb
def send_csv(upload_csv)
@greeting = 'Hi'
attachments['parsed.csv'] = File.read(upload_csv.generated_csv)
mail(to: "sample@gmail.com", subject: 'CSV is parsed successfully.')
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment