As per the API Docs, I’ve put this in my Actionmailer class
attachment :content_type => "application/csv", :body => File.read(filename), :content_disposition => 'test.csv'
The email arrives okay and all but the filename is ignored and the
newlines in my CSV file are gone (replaced by something else).
I must admit I’m receiving this through MS Exchange …