-
Notifications
You must be signed in to change notification settings - Fork 108
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
Error when trying to send attachments to messages with no body text #29
Comments
having the same problem using the java com.amazonaws.services.simpleemail package and this code: http://www.jguru.com/faq/view.jsp?EID=30251 |
So maybe the issue is more of an SES-specific thing than something in this gem. The "right" thing to do might just be to throw a more specific exception? |
Is this pull request will be applied? I had this issue recently and this could have saved me couple hours ;) Thanks. |
I had the same issue just now. :) |
would be great to add some documentation about adding attachment. when i add attachment it actually removes contents of the |
Here's the gist of the problem - I'm using ActionMailer, and I'm trying to send an e-mail for which there is no e-mail view... thus there's no body text. I am trying to include an attachment. When I try to do this, I get the following error:
There's an easy workaround (if you ended up here via google!) - I just made empty views and all went well, but the somewhat cryptic error message had me scratching my head for a bit.
BTW - sending attachments w/out body text worked fine without the workaround before I started using SES (i.e., with standard SMTP ActionMailer).
I looked briefly into fixing this myself, but I wasn't sure the best way to do it. :( Maybe setting default blank message around line 100 of lib/aws/ses/send_email.rb ? That seemed a bit hokey, though. :S
The text was updated successfully, but these errors were encountered: