views:

279

answers:

1

What is the possible way of sending Email with an embedded Image from Application?

+1  A: 

UPDATE. Only if you find a way to send email with an HTML body. So far there is no way to send HTML email from a BlackBerry device:

You cannot send HTML email messages from a BlackBerry device.

RIM API 5.0 Messaging - Email messages - Accessing HTML email messages

However if you will find a way to send an HTML email body (using TCP or if there will be this feature in the newer RIM API) then you can add an image as a 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 in email.

Max Gontar
Hi can i have a sample code
rupesh
Unfortunately I can not provide sample, see update.
Max Gontar
Where should i see the update
rupesh
...in my answer )
Max Gontar