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
--
Blog: www.rekby.ru