cancel
Showing results for 
Search instead for 
Did you mean: 

Post an Image using Mail Adapter

Former Member
0 Kudos

Hi Friends,

Iam working on Mail Adapter..

I just got a thought that is it possible to send an image using mail adapter to Lotus Notes ?

The Image could be picked using a File Adapter. But can it be possible to send that using Mail Adapter. And I want to display the Image as it is. I mean <b>I dont want</b> to send it as an attachment.

Regards,

Raju...

Accepted Solutions (0)

Answers (4)

Answers (4)

piyush_kumar6
Active Contributor
0 Kudos

hi Narayana Raju,

You can send mail with picture and it will appear in mail body (Not in attachment).

for this you need to set your content type of your mime object to html.

like following because in text content you can not see pictures

*message.setContent(yourmsg_string,"text/html");*_

but practically we are not sending image we just give the link of pic , for that

your picture must be uploaded somewhere to server .

and in yr mail body use <IMG SRC="location of your picture" WIDTH="800" HEIGHT="600" BORDER="0" ALT="">

to add picture .

MichaelSambeth
Advisor
Advisor
0 Kudos

Hello Raju,

you may consider transferring it directly from SAP to Lotus via RFC. Pls see

Another option would be to leverage SAP XI and the XI Adapter for Lotus Domino.

Regards

Michael

Former Member
0 Kudos

Hi Michal,

How do you send the image in a mail as a html file?

I had a scenario where I was trying to do the same from a File adapter to be received by mail but then my payload as well as attachment were in xml format.

cheers,

Prashanth

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

>>>How do you send the image in a mail as a html file?

don't know how you cna do such a link but it should be possible I guess

>>>>I had a scenario where I was trying to do the same from a File adapter to be received by mail but then my payload as well as attachment were in xml format.

this is much easier you just have to change

the attachment type (in the adaptr module) to the image and set it's filename

if you want the image as an attachment it's much easier

if you want file adapter - image -> mail adapter image

in the attachment then you don't even have to

write an adapter module to get the jpg file for example

Regards,

michal

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

I blieve that even if you set the main as inline

the image will still be saved as an attachment

but maybe you can send an html that will use the

image from the attachment? (do you know if this is possible?)

Regards,

michal