on 04-11-2006 12:20 PM
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...
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 .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
79 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.