Inline resources are added to the MimeMessage by using the specified Content-ID (identifier1234 in the above example).
The order in which you add the text and the resource are very important.
Be sure to first add the text and then the resources.
If you are doing it the other way around, it does not work.