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
-
Giving UniGetUi a test run.
by
RetiredGeek
1 hour, 10 minutes ago -
Windows 11 Insider Preview Build 26100.4188 (24H2) released to Release Preview
by
joep517
8 hours, 47 minutes ago -
Microsoft is now putting quantum encryption in Windows builds
by
Alex5723
6 hours, 45 minutes ago -
Auto Time Zone Adjustment
by
wadeer
13 hours, 16 minutes ago -
To download Win 11 Pro 23H2 ISO.
by
Eddieloh
10 hours, 56 minutes ago -
Manage your browsing experience with Edge
by
Mary Branscombe
1 minute ago -
Fewer vulnerabilities, larger updates
by
Susan Bradley
2 hours, 27 minutes ago -
Hobbies — There’s free software for that!
by
Deanna McElveen
6 hours, 45 minutes ago -
Apps included with macOS
by
Will Fastie
6 hours, 22 minutes ago -
Xfinity home internet
by
MrJimPhelps
6 hours, 18 minutes ago -
Convert PowerPoint presentation to Impress
by
RetiredGeek
6 hours, 15 minutes ago -
Debian 12.11 released
by
Alex5723
1 day, 10 hours ago -
Microsoft: Troubleshoot problems updating Windows
by
Alex5723
1 day, 14 hours ago -
Woman Files for Divorce After ChatGPT “Reads” Husband’s Coffee Cup
by
Alex5723
17 hours, 32 minutes ago -
Moving fwd, Win 11 Pro,, which is best? Lenovo refurb
by
Deo
9 hours, 57 minutes ago -
DBOS Advanced Network Analysis
by
Kathy Stevens
2 days, 7 hours ago -
Microsoft Edge Launching Automatically?
by
healeyinpa
1 day, 21 hours ago -
Google Chrome to block admin-level browser launches for better security
by
Alex5723
2 days, 9 hours ago -
iPhone SE2 Stolen Device Protection
by
Rick Corbett
2 days, 1 hour ago -
Some advice for managing my wireless internet gateway
by
LHiggins
1 day, 9 hours ago -
NO POWER IN KEYBOARD OR MOUSE
by
HE48AEEXX77WEN4Edbtm
11 hours, 27 minutes ago -
A CVE-MITRE-CISA-CNA Extravaganza
by
Nibbled To Death By Ducks
2 days, 19 hours ago -
Sometimes I wonder about these bots
by
Susan Bradley
7 hours, 17 minutes ago -
Does windows update component store “self heal”?
by
Mike Cross
2 days, 5 hours ago -
Windows 11 Insider Preview build 27858 released to Canary
by
joep517
3 days, 9 hours ago -
Pwn2Own Berlin 2025: Day One Results
by
Alex5723
1 day, 17 hours ago -
Windows 10 might repeatedly display the BitLocker recovery screen at startup
by
Susan Bradley
1 day, 5 hours ago -
Windows 11 Insider Preview Build 22631.5409 (23H2) released to Release Preview
by
joep517
3 days, 11 hours ago -
Windows 10 Build 19045.5912 (22H2) to Release Preview Channel
by
joep517
3 days, 11 hours ago -
Kevin Beaumont on Microsoft Recall
by
Susan Bradley
3 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.