Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Send image in email body for Lotus Notes

Posted on 2013-12-16
5
Medium Priority
?
1,181 Views
Last Modified: 2013-12-22
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 .

Cheers
0
Comment
Question by:Bianchi928
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 53

Expert Comment

by:Scott Fell, EE MVE
ID: 39723161
Your image will need to be hosted and then you will need to build your email.

theHtml=""
theHtml=theHtml&"This is my image below<br>"
theHtml=theHtml&"<img src=""http://mysite.com/images/xyz.jpg""><br>"
theHtml=theHtml&"You can also click on this image<br>"
theHtml=theHtml&"< href=""http://msite.com/page2.html""><img src=""http://mysite.com/images/xyz.jpg""></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.
0
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 39723577
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: http://www-10.lotus.com/ldd/ddwiki.nsf/dx/Sending_an_email_with_a_custom_%E2%80%9Csender%E2%80%9D_via_MIME
0
 

Author Comment

by:Bianchi928
ID: 39725167
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.

Thanks
Cheers
0
 
LVL 46

Accepted Solution

by:
Sjef Bosman earned 1600 total points
ID: 39725345
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: http://www.ozgrid.com/forum/showthread.php?t=172223
0
 

Author Closing Comment

by:Bianchi928
ID: 39734942
That's what I was looking for.. Thanks
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I met Paul Devereux (@pdevereux) today when I responded to his tweet asking “Anybody know how to automate adding files from disk to a folder in #outlook  ?”.  I replied back and told Paul that using automation, in this case scripting, to add files t…
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

660 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question