Amazon SES attachment error for ICS files
amazon-ses, amazon-web-services, ruby-on-rails-3.1
Solution
The actual issue was that the email has content type `multipart/mixed` and the part which holds the `ics` file has the cotent type `text/plain`, According to Amazon MIME Types, `text/plain` must have extensions `txt, diff, text`. But in my case it was having `.ics` extension.
So i have to change the code from this.
attachments["file_name.ics"] = @model.to_ical
to this.
attachments["file_name.ics"] = {:mime_type => 'text/calendar',
:content => @model.to_ical}
and it solved my problem.
Problem
I am facing attachment error with Amazon SES service. Normal `pdf` or `jpg` files are attached properly. But when i attach a `.ics` file which is a calender file. I got this error. ``` 554 Transaction failed: Illegal filename 'file_name.ics' ``` I am using `aws-ses` gem with `rails 3.2.2` Is there any limitation from Amazon? And how can we request them to allow this mime type to our account?