This project is archived and is in readonly mode.
Emails with attachments don't work as documented
-
Michael Koziarski
- Milestone cleared.
I can reproduce the breakage for mail.zip here as well.
However the attached patch shows that the tests pass when we test that functionality. So something is very strange.
-
Michael Koziarski
- Assigned user changed from Michael Koziarski to josh
I can confirm this error, but everything on the AM side seems 'right'. Any ideas josh? Can you reproduce the error with the zip file?
-
josh
- State changed from new to open
- Assigned user changed from josh to Michael Koziarski
I can confirm the error in the sample app.
I'm not sure how to fix it, but it looks like the error is around this line.
# Then, if there were such templates, we check to see if we ought to # also render a "normal" template (without the content type). If a # normal template exists (or if there were no implicit parts) we render # it. template_exists = @parts.empty? template_exists ||= template_root["#{mailer_name}/#{@template}"] @body = render_message(@template, @body) if template_existsThe template renders fine the first time with the explicit render_message. Because "daily_report.erb" exists, it is setting template_exists to true and trying to render the template a second time.
-
Michael Koziarski
Yeah, it seems it's missing a performed? style check. But I'm not sure that we can change that too easily without potentially breaking people who are reying on the implicit rendering of the body?
-
Michael Koziarski
- Milestone set to 2.x
It's had this problem all along, so I'll punt on this for now.
-
rdavila
It works fine for me in 2.3.5.
-
Jeremy Kemper
- State changed from open to resolved
