Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hotspot link to executable

Status
Not open for further replies.

ddcroit

Technical User
Jul 17, 2008
12
US
Hello community,

I am having a bad time in finding out how to send a mail with a link to a program using a hotspot in LotusScript.

The code below sends an empty email.

'---code---
Sub Initialize()

Dim NotesSession As New NotesSession
NotesSession.Initialize ("Password")

Dim NotesDB As NotesDatabase
Set NotesDB = NotesSession.GetDatabase("ServerName", "mail\" & UserName & ".nsf")

Dim NotesDocument As NotesDocument
Set NotesDocument = NotesDB.CreateDocument

Dim NotesRichItem As NotesRichTextItem
Set NotesRichItem = NotesDocument.CreateRichTextItem("Body")

'Here comes what I need. Something similar to the line below
'NotesRichItem.AppendDocLink "myProgram.exe","Click Here"

NotesDocument.Send False, "Email"

Set NotesSession = Nothing
Set NotesDB = Nothing
Set NotesDocument = Nothing
Set NotesRichItem = Nothing

'--- End code

End Sub

Thanks very much !!!!!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top