Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attachments not showing on mailcatcher 0.8.1 #517

Open
ChunAllen opened this issue Sep 20, 2022 · 0 comments
Open

Attachments not showing on mailcatcher 0.8.1 #517

ChunAllen opened this issue Sep 20, 2022 · 0 comments

Comments

@ChunAllen
Copy link

ChunAllen commented Sep 20, 2022

I'm currently using Ruby 2.6.0 and mailcatcher 0.8.1

I have csv inside my public/attachments/L0052.csv which is only 903 bytes

 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

Screenshot 2022-09-20 at 5 14 31 PM

This is the content of the source

Screenshot 2022-09-20 at 5 16 19 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant