Displaying 1 result from an estimated 1 matches for "tvtm3wudi7lwk0htik3j".
2008 Jul 17
2
Passing array to the email body using ActionMailer
...f file names.
So the email will look like:
hi,
filename1
filename2
filename3
.
.
.
filenameN
So I want to pass an array containing all the filenames into the email
body.
My code is below:
class Notifier < ActionMailer::Base
def log_report(recipient, files)
from ''zhengdao.kan-TVtm3wuDI7lWk0Htik3J/w@public.gmane.org''
recipients recipient
subject ''Ruby automation scripts report''
body ("Errors are detected in the following log files.
Here''s the log file:
#{files}")
end
end
When I run the code, I receive email with all the filenames...