Has anyone been able to send a Lotus email using VBA which included a hyperlink in the body of the email and not have the email display the link as plain text?
![]() |
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 |
-
HTML email using Lotus Notes (2003 SP2)
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » HTML email using Lotus Notes (2003 SP2)
- This topic has 9 replies, 3 voices, and was last updated 17 years, 6 months ago.
AuthorTopicWSchuckrau
AskWoody LoungerOctober 29, 2007 at 4:03 pm #445711Viewing 1 reply threadAuthorReplies-
WSmbarron
AskWoody LoungerOctober 29, 2007 at 5:48 pm #1081449Do you mean the link is coming across as plain text and you want it to be a link of the other way around. It’s a link and you want it to be plain text.
If it’s the former: if you are editing the email, Lotus notes does not make the link active. With LN, the link is active only in a non editing mode – such as the sent document or the received document.
I’ve never used Access to send an email using LN with a hyperlink in it. Do you have an example of the code, and I could try to reproduce your results?
-
WSmbarron
AskWoody LoungerOctober 29, 2007 at 6:10 pm #1081456(Edited by mbarron on 29-Oct-07 12:10. Added some white space after the DoCmd line)
I used a SendObject of:
DoCmd.SendObject acSendQuery, “Query1”, acFormatXLS, “AnyAddress@SomeDomain.com”, , , “Test of Send”, “Goto http://www.google.com”
that displays the link as a link at my gmail accont and when I receive it in Lotus Notes. During the edit in Lotus Notes, the link is “dead”.
One note – the http:// was necessary to make the link active when receiving in Lotus Notes. Without it, the link is not a link, only text.
-
WSchuckrau
AskWoody LoungerOctober 30, 2007 at 4:46 pm #1081482Here is the code I have been using.
Function SendLotusEmail()
Dim Subject As String
Dim Attachment As String
Dim Attachment2 As String
Dim Recipient As String
Dim BodyText As String
Dim SaveIt As Boolean
Dim dbs As Database‘This function will send a mail and attachment if neccessary to the recipient including the body text.
‘Requires that notes client is installed on the system.‘Set up the objects required for Automation into lotus notes
Dim Maildb As Object ‘The mail database
Dim MailDoc As Object ‘The mail document itself
Dim Attach1 As Object ‘The attachment object
Dim Attach2 As Object ‘The second attachment
Dim Session As Object ‘The notes session
Dim EmbedObj As Object ‘The embedded object (Attachment)‘Start a session to notes
Set Session = CreateObject(“Notes.NotesSession”)
Set Maildb = Session.GETDATABASE(“”, “”)‘Set the message for the BodyText
‘BodyText = BodyText & vbCrLf
BodyText = “THE ATTACHED FILES CONTAINS SENSITIVE CLIENT INFORMATION AND SHOULD NOT ” _
& “BE SENT OUTSIDE OF PNC UNLESS ENCRYPTED. PNC HAS AN INTRANET SITE, ” _
& “SecureExport, DESIGNED FOR END USERS TO SEND E-MAILS WITH ENCRYPTED ATTACHMENTS. THE ” _
& “FOLLOWING IS THE LINK TO SecureExport:” _
& “https://secureexport.abc.com/sswebsite/encrypt.nsf/mainform?OpenForm” _
& “SecureExport IS A WEB-BASED FILE ENCRYPTION SERVICE THAT ALLOWS YOU TO ENCRYPT FILES IN JUST ” _
& “A FEW EASY STEPS. IT IS IMPORTANT TO REMEMBER THAT FILE ENCRYPTION ONLY ENCRYPTS THE FILE ” _
& “ATTACHMENTS, NOT THE E-MAIL TEXT.”Maildb.OPENMAIL
‘Set up the new mail document
Set MailDoc = Maildb.CREATEDOCUMENT
MailDoc.Form = “Memo”
MailDoc.sendto = “charles.rau@pnc.com”
‘MailDoc.copyto = “”
MailDoc.Subject = “Chart Reports”
MailDoc.Body = BodyText
MailDoc.SAVEMESSAGEONSEND = SaveIt‘Attachment = “PPNWWS07VOL1GROUPPATOSTOP Technical Services” _
& “MercantileBakery & Confectionery UnionPensionChart.pdf”
‘Attachment2 = “PPNWWS07VOL1GROUPPATOSTOP Technical Services” _
& “MercantileBakery & Confectionery UnionHealthChart.pdf”‘Set up the embedded object and attachment and attach it
‘Set Attach1 = MailDoc.CREATERITHTEXTITEM(“Attachment”)
‘Set EmbedObj = Attach1.EMBEDOBJECT(1454, “”, Attachment, “Attachment”)
‘Set Attach2 = MailDoc.CREATERICHTEXTITEM(“Attachment2”)
‘Set EmbedObj = Attach2.EMBEDOBJECT(1454, “”, Attachment2, “Attachment2”)‘Send the document
MailDoc.PostedDate = Now() ‘Gets the mail to appear in the sent items folder
MailDoc.SEND 0, Recipient‘Clean Up
Set Maildb = Nothing
Set MailDoc = Nothing
Set Attach1 = Nothing
Set Attach2 = Nothing
Set Session = Nothing
Set EmbedObj = Nothing
Set dbs = Nothing
MsgBox “Email sent”
End Function -
WSHansV
AskWoody Lounger -
WSchuckrau
AskWoody Lounger -
WSHansV
AskWoody LoungerOctober 30, 2007 at 6:07 pm #1081609 -
WSchuckrau
AskWoody LoungerOctober 30, 2007 at 6:39 pm #1081629You may be right Hans. You know I am over my head here. I have found many are looking for a solution. I have searched the internet and other Access forums only to find similiar questions to mine with no solution at this point, but I will keep looking. If our Lotus Notes people find a fix I will post back.
-
WSchuckrau
AskWoody Lounger -
WSHansV
AskWoody Lounger
-
-
-
-
Viewing 1 reply thread -

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
-
“kill switches” found in Chinese made power inverters
by
Alex5723
1 hour, 8 minutes ago -
Windows 11 – InControl vs pausing Windows updates
by
Kathy Stevens
1 hour, 33 minutes ago -
Meet Gemini in Chrome
by
Alex5723
2 hours, 35 minutes ago -
DuckDuckGo’s Duck.ai added GPT-4o mini
by
Alex5723
2 hours, 43 minutes ago -
Trump signs Take It Down Act
by
Alex5723
10 hours, 42 minutes ago -
Do you have a maintenance window?
by
Susan Bradley
1 hour, 56 minutes ago -
Freshly discovered bug in OpenPGP.js undermines whole point of encrypted comms
by
Nibbled To Death By Ducks
1 hour, 58 minutes ago -
Cox Communications and Charter Communications to merge
by
not so anon
14 hours, 2 minutes ago -
Help with WD usb driver on Windows 11
by
Tex265
19 hours, 11 minutes ago -
hibernate activation
by
e_belmont
22 hours, 57 minutes ago -
Red Hat Enterprise Linux 10 with AI assistant
by
Alex5723
1 day, 2 hours ago -
Windows 11 Insider Preview build 26200.5603 released to DEV
by
joep517
1 day, 5 hours ago -
Windows 11 Insider Preview build 26120.4151 (24H2) released to BETA
by
joep517
1 day, 5 hours ago -
Fixing Windows 24H2 failed KB5058411 install
by
Alex5723
1 hour, 55 minutes ago -
Out of band for Windows 10
by
Susan Bradley
1 day, 10 hours ago -
Giving UniGetUi a test run.
by
RetiredGeek
1 day, 17 hours ago -
Windows 11 Insider Preview Build 26100.4188 (24H2) released to Release Preview
by
joep517
2 days, 1 hour ago -
Microsoft is now putting quantum encryption in Windows builds
by
Alex5723
1 hour, 59 minutes ago -
Auto Time Zone Adjustment
by
wadeer
2 days, 5 hours ago -
To download Win 11 Pro 23H2 ISO.
by
Eddieloh
2 days, 3 hours ago -
Manage your browsing experience with Edge
by
Mary Branscombe
2 hours, 46 minutes ago -
Fewer vulnerabilities, larger updates
by
Susan Bradley
20 hours, 19 minutes ago -
Hobbies — There’s free software for that!
by
Deanna McElveen
1 day, 2 hours ago -
Apps included with macOS
by
Will Fastie
1 day ago -
Xfinity home internet
by
MrJimPhelps
21 hours, 22 minutes ago -
Convert PowerPoint presentation to Impress
by
RetiredGeek
1 day, 22 hours ago -
Debian 12.11 released
by
Alex5723
3 days, 2 hours ago -
Microsoft: Troubleshoot problems updating Windows
by
Alex5723
3 days, 6 hours ago -
Woman Files for Divorce After ChatGPT “Reads” Husband’s Coffee Cup
by
Alex5723
2 days, 9 hours ago -
Moving fwd, Win 11 Pro,, which is best? Lenovo refurb
by
Deo
2 hours, 10 minutes 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.