Saturday, February 8, 2014

Send e-mail with an attachment using javamail problem


posts by english943 on 2013-11-30 21:06:25 Edit
Use javamail write a program to send mail

When a virtual machine running on android, if the attachment is txt files, the ability to send e-mail successfully, but it can not send attachments replaced zip

Then use the same code as a java application is running will not have this problem

That process should be no problem, that in the end is what causes not run on android

You have to know, you can help us here, thanks!
Reply:
What a mistake?

By theory stresses can all be sent. Unless ZIP filtered by the system. Or too large.
Reply:
The reply was deleted administrator at 2013-12-01 15:51:55

Reply:
I know, the problem is not the attachment, is the service can not send mail, but you can, do you know how to send mail in service in intentservice in it, and threads may feel a relationship.

cited a floor birdsaction reply:
errors it?

By theory stresses can all be sent. Unless ZIP filtered by the system. Or too large.

Reply:
intentservice If you can send that question thread in Service put the thread in which the message is sent to try.
Reply:
references, 4th Floor birdsaction reply:
intentservice If you can send that question thread in Service put the thread in which the message is sent to try .



Indeed threading issues, send messages in thread like to solve the problem, thank you!

No comments:

Post a Comment