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
-
Slow Down in Windows 10 performance after March 2025 updates ??
by
arbrich
1 hour, 8 minutes ago -
Mail from certain domains not delivered to my outlook.com address
by
pumphouse
6 hours ago -
Is data that is in OneDrive also taking up space on my computer?
by
WShollis1818
7 hours, 9 minutes ago -
Nvidia just fixed an AMD Linux bug
by
Alex5723
1 day, 1 hour ago -
50 years and counting
by
Susan Bradley
1 hour, 10 minutes ago -
Fix Bluetooth Device Failed to Delete in Windows Settings
by
Drcard:))
8 hours, 6 minutes ago -
Licensing and pricing updates for on-premises server products coming July 2025
by
Alex5723
1 day, 12 hours ago -
Edge : Deprecating window.external.getHostEnvironmentValue()
by
Alex5723
1 day, 12 hours ago -
Rethinking Extension Data Consent: Clarity, Consistency, and Control
by
Alex5723
1 day, 12 hours ago -
OneNote and MS Word 365
by
CWBillow
1 day, 14 hours ago -
Ultimate Mac Buyers Guide 2025: Which Mac is Right For You?
by
Alex5723
1 day, 14 hours ago -
Intel Unison support ends on Windows 11 in June
by
Alex5723
1 day, 14 hours ago -
April 2025 — still issues with AMD + 24H2
by
Kevin Jones
1 day, 14 hours ago -
Windows 11 Insider Preview build 26200.5518 released to DEV
by
joep517
2 days, 2 hours ago -
Windows 11 Insider Preview build 26120.3671 (24H2) released to BETA
by
joep517
2 days, 2 hours ago -
Forcing(or trying to) save Local Documents to OneDrive
by
PateWilliam
2 days, 11 hours ago -
Hotpatch for Windows client now available (Enterprise)
by
Alex5723
1 day, 23 hours ago -
MS-DEFCON 2: Seven months and counting
by
Susan Bradley
1 day ago -
My 3 monitors go black & then the Taskbar is moved to center monitor
by
saturn2233
2 days, 20 hours ago -
Apple backports fixes
by
Susan Bradley
2 days, 2 hours ago -
Win 11 24H2 will not install
by
Michael1950
1 day ago -
Advice to convert MBR to GPT and install Windows 11 Pro on unsupported PC
by
Andy M
14 minutes ago -
Photos from iPhone to Win 10 duplicating/reformatting to .mov
by
J9438
1 day, 8 hours ago -
Thunderbird in trouble. Here comes Thundermail
by
Alex5723
9 hours, 17 minutes ago -
Get back ” Open With” in context menus
by
CWBillow
3 days, 11 hours ago -
Many AMD Ryzen 9800X3D on ASRock have died
by
Alex5723
2 days, 3 hours ago -
simple general stupid question
by
WSaltamirano
3 days, 8 hours ago -
April 2025 Office non-Security updates
by
PKCano
4 days, 2 hours ago -
Microsoft wants to hear from you
by
Will Fastie
1 day, 17 hours ago -
Windows 11 Insider Preview Build 22635.5160 (23H2) released to BETA
by
joep517
4 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.