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?
The actual issue was that the email has content type
multipart/mixedand the part which holds theicsfile has the cotent typetext/plain, According to Amazon MIME Types,text/plainmust have extensionstxt, diff, text. But in my case it was having.icsextension.So i have to change the code from this.
to this.
and it solved my problem.