Hi, One of my servlet creates CSV content in a String variable.
I'd like to send this CSV like an attachment file but everybody knows the limitations of GAE : it's impossible to create a file. So, I decided to find an another solution. Mine is to attach the CSV string like that : String csv = ""; Message msg = new MimeMessage(session); msg.setDataHandler(new DataHandler(new ByteArrayDataSource(csv.getBytes(),"text/csv"))); msg.setFileName("data.csv"); I receive the mail but without attachment. The CSV string is integrated into the body part of the mail. How to attach this CSV string like a CSV file into the mail? Thanks -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.