I am new to actionmailer. I am writing a script that sends emails
contains lots of file names.
So the email will look like:
So I want to pass an array containing all the filenames into the email
My code is below:
class Notifier < ActionMailer::Base
def log_report(recipient, files)
subject 'Ruby automation scripts report'
body ("Errors are detected in the following log files.
Here's the log file:
When I run the code, I receive email with all the filenames in one line.
However, I would like to have these filenames written one each line.
Is there way to format the email body?