Это код для отправки вложений по почте, и он очень хорошо работает на устройстве:
private void sendmail()
{
try
{
Address[] address = new Address[1];
address[0] = new Address(" "," ");
Folder folders[] = Session.getDefaultInstance().getStore().list(Folder.SENT);
msg=new Message(folders[0]);
msg.addRecipients(Message.RecipientType.TO, address);
msg.setSubject(" ");
SupportedAttachmentPart attach = new SupportedAttachmentPart(multipart,"application/pdf",pdfName,data);
multipart.addBodyPart(attach);
msg.setContent(multipart);
Invoke.invokeApplication(Invoke.APP_TYPE_MESSAGES,new MessageArguments(msg));
try
{
Transport.send(msg);
}
catch(SendFailedException e)
{
System.out.println("messages for sent : : : : : : "+e.getMessage());
}
}