Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Send image in email body for Lotus Notes

Posted on 2013-12-16
5
Medium Priority
?
1,230 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
  • 2
  • 2
5 Comments
 
LVL 54

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

963 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