Solved

Send image in email body for Lotus Notes

Posted on 2013-12-16
5
1,021 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 400 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Need help Creating PowerShell Script 5 82
VBA Vbscript  Issue 9 42
Having trouble with a VB Script 17 36
Cross checking component service dlls 2 46
Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_28455246.html)28455246) Here (http…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

710 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