Send image in email body for Lotus Notes

I already have a little script that reads email addresses from an Excel file and then send the email. What I need to do is to have an image (not as attachment) be in the email body.

I've used a few tricks ,like having the image as a signature (which works fine) , but then I can't add a Disclaimer after that.

Also, I've created a draft with the Image and Disclaimer already in tehre. But I don't knwo how to open a draft in VBScript and next send it to a list of people.

I need help .

Who is Participating?
Sjef BosmanConnect With a Mentor Groupware ConsultantCommented:
If the email is completely ready to be sent, and you know which mail it is (how?), all you need to do is fetch it as a NotesDocument and use the Send method to send it out.

I think you used the COM interface to Notes before, so I suppose you can do the coding. Here some pseudo-code:

get the mail database
get the Drafts view
get the first document in the view (assuming it's the one you intend to send)
and send it

You might find more clues in the example on this page:
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
Your image will need to be hosted and then you will need to build your email.

theHtml=theHtml&"This is my image below<br>"
theHtml=theHtml&"<img src=""""><br>"
theHtml=theHtml&"You can also click on this image<br>"
theHtml=theHtml&"< href=""""><img src=""""></a>"

Open in new window

In your html.body, you will use the variable, theHtml.  When you build your html like this, I find avoiding all white space is key. Some email clients will treat white space not as expected and sometimes break the html code when it is rendered.
Sjef BosmanGroupware ConsultantCommented:
Ain't going to work like that. You have to use the MIME methods in Notes to send an embedded image. Maybe this example can put you on the right track:
Bianchi928Author Commented:
Thanks for the replies...

Following new issues here, is it possible for any of you to guide me thru retrieving an email sitting in my draft folder which already include the image and disclaimer and use my list of recipients.

Bianchi928Author Commented:
That's what I was looking for.. Thanks
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.