Text parameter expects either encoded, or plaintext value.
ContentType parameter represents type of the image being
embedded. This value will be assigned to Content-Type header related
to message part containing the embedded image.
Encoding parameter represents value of
'Content-Transfer-Encoding' header that will be automatically
set for the image. Depending on this setting, component will expect
provided Text parameter to already hold contents in specified
encoding. If Encoding parameter is set to
encUNKNOWN, the component will by try encoding into Base64
format.
Make sure you set ContentType
argument properly, otherwise image will not be displayed correctly.
For GIF images, you should set image/gif,
and for JPEG images you should set image/jpeg.