935486 wrote:Okay, problem solved then. Of course you still don't understand the how and why, but that's up to you to figure out.
I was about to try to set the encoding for the email body also which I read from google so just before I tested I can see is already working. Earlier the email was also garbled.
messagePart.setHeader("Content-Type","text/plain; charset=\"utf-8\""); messagePart.setHeader("Content-Transfer-Encoding", "quoted-printable");