Hi Lukas,
Firstly, thank you very much for a great library!
I've encountered a couple of bugs for which I've attached a suggested patch.
Here are the issues:
1) If your locale is set to a multibyte character set then mail attachments are corrupted. This is easily confirmed by executing "SetMultiByteConversionCodePage(CP_UTF8);" before sending a message with an attachment. The problem lies in TMIMEPart.EncodePart and synachar.GetBOM.
2) The "Contect-ID" field value in the MIME header should be enclosed in angled brackets according to the MIME RFC. Without the angled brackets some mail clients reject images embedded in the HTML body, e.g. GMail.
3) There is a compiler warning in TMimeMess.AddPartText which I've fixed.
Thanks again.
Best regards,
Pierre le Riche
Thank you!