lampiran email spreadsheet rel
spreadsheet_file = StringIO.new
data.write(spreadsheet_file)
attachments['HelloWorld.xls'] = spreadsheet_file.read
Lioruby
spreadsheet_file = StringIO.new
data.write(spreadsheet_file)
attachments['HelloWorld.xls'] = spreadsheet_file.read