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
2010-04-16 04:37:21
Hi can i have a sample code
rupesh
2010-04-20 14:48:20
Unfortunately I can not provide sample, see update.
Max Gontar
2010-04-21 06:14:50
Where should i see the update
rupesh
2010-04-21 07:27:21
...in my answer )
Max Gontar
2010-04-21 07:34:55