BlackBerry - How to send an inline image email from an app?

What is a possible way to send email with an inline image from within the application?

+2


source to share


1 answer


UPDATE. Only if you find a way to send email with HTML body . There is no way yet to send an HTML email address from your BlackBerry device:

You cannot send HTML email messages from your BlackBerry device.

RIM API 5.0 Messaging - Email Messages - Access HTML Email Messages

However, if you find a way to send an HTML email body (using TCP, or if this functionality will be used in the new RIM API), you can add the image as part of the message content and use its content ID in the HTML markup.



Your email body should look like this:

<html>
    <body>
        <img src="cid:image.png"/><div>
    </body>
</html>
——=_NextPart_000_0022_01C8F277.B56CB710
Content-ID: <image.png>
Content-Type: application/octet-stream; name=image.png
Content-Transfer-Encoding: base64

MCaydY5mzxGm2QCqAGLObPUEAAAAAAAABwAAAAECodyrjEepzxG
O5ADADCBTZWgAAAAAAAAAZmZ4mpW9yJiHWNgOvUjZSflgDwAAA
AAAgK1DSFIlyAEqAQAAAAAAAAAcTg4AAAIIAgCtTCwAAAAC IEwAA…….etc..

      

See also Embedding video by email .

+2


source







All Articles