Saturday, February 8, 2014
Send e-mail with an attachment using javamail problem
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:
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.
Reply:
intentservice If you can send that question thread in Service put the thread in which the message is sent to try.
Reply:
Indeed threading issues, send messages in thread like to solve the problem, thank you!
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment