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

Error when trying to send attachments to messages with no body text #29

Open
mdesjardins opened this issue Jan 9, 2012 · 5 comments
Open

Comments

@mdesjardins
Copy link
Contributor

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:

AWS::SES::ResponseError: InvalidParameterValueMissing start boundary

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

@forste
Copy link

forste commented Jan 10, 2012

having the same problem using the java com.amazonaws.services.simpleemail package and this code: http://www.jguru.com/faq/view.jsp?EID=30251

@mdesjardins
Copy link
Contributor Author

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?

@piclez
Copy link

piclez commented Aug 3, 2012

Is this pull request will be applied? I had this issue recently and this could have saved me couple hours ;) Thanks.

@parkr
Copy link

parkr commented Apr 26, 2013

I had the same issue just now. :)

@rilian
Copy link

rilian commented Jan 19, 2021

would be great to add some documentation about adding attachment. when i add attachment it actually removes contents of the :body param, and then the gem returns this message Attachment provided without message body ... so i had to assign :body again to be able to send email with body and attachment at the same time

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

5 participants