Open ChunAllen opened 1 year ago
I'm currently using Ruby 2.6.0 and mailcatcher 0.8.1
Ruby 2.6.0
mailcatcher 0.8.1
I have csv inside my public/attachments/L0052.csv which is only 903 bytes
public/attachments/L0052.csv
def send_transactions(hotel_code) @hotel_code = hotel_code attachments['L0052.csv'] = File.read('public/attachments/L0052.csv') mail(to: @hotel_code.email, subject: "Quarterly Report") end
I managed to receive the email from mailcatcher but there's no attached file
This is the content of the source
I'm currently using
Ruby 2.6.0
andmailcatcher 0.8.1
I have csv inside my
public/attachments/L0052.csv
which is only 903 bytesI managed to receive the email from mailcatcher but there's no attached file
This is the content of the source