I fond the solution.

While here ( 
http://code.google.com/appengine/docs/java/mail/overview.html#Attachments ) 
says that "text/plain" mime type is the one to attach a .txt file, I changed 
the mime type to "application/octet-stream" and now works fine.

I just changed this line:

DataSource src = new ByteArrayDataSource(new 
ByteArrayInputStream(buff.toString().getBytes()), "text/plain");

with this:

DataSource srcTextFile = new 
ByteArrayDataSource(buff.toString().getBytes("UTF-8"), 
"application/octet-stream");

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to