If I attach xls files as attachment in the mailer like this
attachments["1.xls"] = File.read "1.xls"
If I try open the attachment from the received mail, Excel is unable to open and it says the file is corrupted.
Please let me know if I am missing something? Please let me know if additional information is needed?