on 01-18-2013 1:56 PM
Hello Experts,
I have an interface RFC-to-Mail using Mail Package, which define a body text for the mail.
I would like to insert an image (JPG) in the body of the email (not as an attachment). Does anyone know if you can tell me to read the binary file via Java Mapping (or UDF) and insert it in Content of the Mail Package?
Tks in advance.
Pedro Baroni
You are trying to insert image in the body. That means your body content must have html format. That means you have to write html syntax and insert image in it. This is possible. Again if your mail editor is not html enabled then you might not able to view it. Browsers based mail will display image content in the body. refer this link for insert image. Read the image file from database using java mapping and return your reply as html in string and inside html insert image tag.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Baskar,
No, o not use HTML. When I say "body", it's a body of mail, not body of html, because I use Mail package like this:
<ns:Mail xmlns:ns="http://sap.com/xi/XI/Mail/30">
<Subject>Hello</Subject>
<From>sender@sender.com</From>
<To>receiver@receiver.com</To>
<Content>This is a mail</Content>
</ns:Mail>
I need insert image in tag <Content>.
Regards.
But.......html is another way.
I try this with Embedding Base64 Images, like:
Embedding Image in mail body instead of sending it as an attachment
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Experts,
Any idea?
Tks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.