Hello,
I would like to create automated E-Mails from the contents of an Access table which will contain E-MAil adresses and a file-name to be sent.
I found a library called “Domino”, but there is no documentation available how to use Office (XP) Automation with Lotus Notes (without Outlook).
Anyone able to help? I’m sure there is at least one among all the cracks here.
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Automated E-Mails with Lotus Notes (Access 2002)
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Automated E-Mails with Lotus Notes (Access 2002)
- This topic has 8 replies, 5 voices, and was last updated 19 years, 4 months ago.
AuthorTopicWShschwickart
AskWoody LoungerNovember 8, 2002 at 7:00 am #379119Viewing 0 reply threadsAuthorReplies-
WScarbonnb
AskWoody LoungerNovember 8, 2002 at 12:19 pm #630207Horst,
Unfortunately I can’t help, but I will give you a word of warning that I got from out Lotus Notes Developer (We don’t use it for mail, but for a “database”)
If you are using Notes R5 of higher, it should be doable. If it is version 4.x you will probably have some challenges. 4.x doesn’t play well with automation, at least according to our Notes Developer. R5 is supposed to have VBA integrated with it, but I can’t confirm that since I only have 4.6
I know this isn’t much help.
-
WShschwickart
AskWoody Lounger -
WSready4data
AskWoody LoungerNovember 13, 2002 at 2:04 pm #631455Horst,
Here is the code I use to send an email with an attachment:
Function SendLotus(Attachment) ‘sends an email with an attachment
Dim S As Object
Dim db As Object
Dim doc As Object
Dim rtItem As Object
Dim Server As String, Database As String
Dim strError As String‘ start up Lotus Notes and get object handle
Set S = CreateObject(“Notes.NotesSession”)
Server = S.GETENVIRONMENTSTRING(“MailServer”, True)
Database = S.GETENVIRONMENTSTRING(“MailFile”, True)
Set db = S.GETDATABASE(Server, Database)On Error GoTo ErrorLogon
‘ See if user is logged on yet;
‘ if not, the error handler will kick in!
Set doc = db.CREATEDOCUMENT
On Error GoTo 0doc.Form = “Memo”
doc.Importance = “1” ‘(WHERE 1=URGENT, 2= NORMAL, 3=FYI)‘Send an EMail to
doc.SENDTO = (“firstaddress@somewhere.com”,”secondaddress@somewhere.com”)
‘SENDS A RETURN RECIEPT
‘doc.RETURNRECIEPT = “1”
doc.Subject = “Place your subject text here”‘ this will build the text part of your mail message
Set rtItem = doc.CREATERICHTEXTITEM(“Body”)
Call rtItem.APPENDTEXT(GetBody)
Call rtItem.ADDNEWLINE(1)‘Attach a document!
Call rtItem.EMBEDOBJECT(1454, “”, Attachment)Call doc.send(False) ‘Make sure this parameter stays false
‘ set all object handles to nothing to release memory
Set doc = Nothing
Set db = Nothing
Set S = Nothing
Set rtItem = NothingMsgBox “Mail has been sent!”, vbInformation
Exit Function
ErrorLogon:
If ERR.NUMBER = 7063 Then
MsgBox “Please login to Lotus Notes first!”, vbCritical
Set doc = Nothing
Set db = Nothing
Set S = Nothing
Set rtItem = NothingExit Function
Else
strError = “An Error has occurred on your system:” & vbCrLf
strError = strError & “Err. Number: ” & ERR.NUMBER & vbCrLf
strError = strError & “Description: ” & ERR.Description
MsgBox strError, vbCritical
Set doc = Nothing
Set db = Nothing
Set S = Nothing
Set rtItem = NothingExit Function
End IfEnd Function
Usage SendLotus “C:yourdocument.doc” -
WShschwickart
AskWoody LoungerNovember 13, 2002 at 2:34 pm #631473 -
WSready4data
AskWoody LoungerNovember 13, 2002 at 2:41 pm #631474Both libraries are in the references but neither is checked off.
I’m not sure which one it is using.
I got most of my info from this site:
http://www-10.lotus.com/ldd/46dom.nsf?OpenDatabase
-
-
WSGARYPSWANSON
AskWoody LoungerNovember 17, 2005 at 6:15 pm #985650Hi,
I found this post while searching on automation for Lotus Notes. Code work great but is there a way to get the email to open
and view it before it sends. That is, the email is created and automatically sends but I want to populate all data and have the email
visible before sending in the event the body needs to be edited. The user physically send the email after it is created.Thanks.
-
WSBrooke
AskWoody LoungerDecember 8, 2005 at 5:48 pm #989254I was going to apologise about the time-delay in replying, but I’m not sure that’s necessary?
I was hoping that you could do it by amending the code:
‘~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Call doc.Save(False, False)
Call doc.SEND(False, doc.SendTo)
‘~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~to
‘~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Call doc.Save(False, False)
Call doc.Activate
‘~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~However, .Activate is not a method of the NotesDocument Class: doc.Save does, however, put the document in the draft folder, so you could navigate to that and open it manually…
My mind is fuzzy when it comes to notes, but I’m sure I remember seeing code that does activate/open a document in the User interface, but I can’t find how to do it using NotesDocuments or NotesItems. It may be possible to get at the draft by the NotesUIView class so that you can then activate it using one of the other NotesUI classes. I’ll keep looking for you, but I’m afraid I can’t promise anything. Hopefully the manually opening the draft will tide you over.
-
WSGARYPSWANSON
AskWoody LoungerDecember 8, 2005 at 9:48 pm #989323Thanks again Brooke. I changed the design of the structure such that the body of the email was reviewed prior to sending so the email would not need to be reviewed when sending to each individual since I couldn’t solve the limitation on the 256 characters in the Send Object.
Ultimately, here is what I did.
1. Users select a listing of users to send an email to
2. Users Press a button to create a .PDF of a report and write it to their local drive
3. Users press a button to send email that loop through each name, create the email, attach the .PDF and send out the Lotus Notes email.
-
-
-
-
Viewing 0 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
WU help needed with “Some settings are managed by your organization”
by
Peobody
4 hours, 25 minutes ago -
No Newsletters since 27 January
by
rog7
22 minutes ago -
Linux Mint Debian Edition 7 gets OEM support, death of Ubuntu-based Mint ?
by
Alex5723
8 hours, 54 minutes ago -
Windows Update “Areca Technology Corporation – System – 6.20.0.41”
by
Bruce
3 hours, 44 minutes ago -
Google One Storage Questions
by
LHiggins
11 hours, 15 minutes ago -
Button Missing for Automatic Apps Updates
by
pmcjr6142
6 hours, 30 minutes ago -
Ancient SSD thinks it’s new
by
WSila
3 hours, 29 minutes ago -
Washington State lab testing provider exposed health data of 1.6 million people
by
Nibbled To Death By Ducks
19 hours, 13 minutes ago -
WinRE KB5057589 fake out
by
Susan Bradley
12 hours, 33 minutes ago -
The April 2025 Windows RE update might show as unsuccessful in Windows Update
by
Susan Bradley
3 hours, 11 minutes ago -
Firefox 137
by
Charlie
1 hour, 21 minutes ago -
Whisky, a popular Wine frontend for Mac gamers, is no more
by
Alex5723
1 day, 7 hours ago -
Windows 11 Insider Preview build 26120.3863 (24H2) released to BETA
by
joep517
1 day, 7 hours ago -
Windows 11 Insider Preview build 26200.5551 released to DEV
by
joep517
1 day, 7 hours ago -
New Windows 11 PC setup — can I start over in the middle to set up a local id?
by
ctRanger
3 hours, 40 minutes ago -
Windows 11 Insider Preview Build 26100.3902 (24H2) released to Release Preview
by
joep517
1 day, 11 hours ago -
Oracle kinda-sorta tells customers it was pwned
by
Nibbled To Death By Ducks
1 day, 17 hours ago -
Global data centers (AI) are driving a big increase in electricity demand
by
Kathy Stevens
2 days, 3 hours ago -
Office apps read-only for family members
by
b
2 days, 6 hours ago -
Defunct domain for Microsoft account
by
CWBillow
2 days, 3 hours ago -
24H2??
by
CWBillow
3 hours, 33 minutes ago -
W11 23H2 April Updates threw ‘class not registered’
by
WindowsPersister
1 day, 11 hours ago -
Master patch listing for April 8th, 2025
by
Susan Bradley
3 hours, 24 minutes ago -
TotalAV safety warning popup
by
Theodore Nicholson
1 day, 2 hours ago -
two pages side by side land scape
by
marc
4 days, 4 hours ago -
Deleting obsolete OneNote notebooks
by
afillat
4 days, 6 hours ago -
Word/Outlook 2024 vs Dragon Professional 16
by
Kathy Stevens
3 days, 9 hours ago -
Security Essentials or Defender?
by
MalcolmP
3 days, 11 hours ago -
April 2025 updates out
by
Susan Bradley
9 hours, 19 minutes ago -
Framework to stop selling some PCs in the US due to new tariffs
by
Alex5723
3 days, 5 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.