Here's the code I have to create the mail..but I want to Any idea how to include a doclink from Notes ..
The szMsg contains some basic text for the body of the email but I want to add a doclink into that body..any idea's?
Sub ComposeEmail(szBudgH As String, szSubj As String, szMsg As String)
On Error GoTo CEErr
Set doc = db.CREATEDOCUMENT
Call doc.REPLACEITEMVALUE("From", szSender)
If itisatest = "Y" Then
szbudgetH = "Gordon Kinghorn/acg/uk/aon"
End If
Call doc.REPLACEITEMVALUE("SendTo", szBudgH + szcanon)
If szBudgH = "Rachel Saunders" Then
Call doc.REPLACEITEMVALUE("SendTo", szBudgH + "/ARS/UK/AON")
End If
Rem Call doc.REPLACEITEMVALUE("CopyTo", szSenderNotesName)
Call doc.REPLACEITEMVALUE("Subject", szSubj)
Call doc.REPLACEITEMVALUE("Body", szMsg)
Call doc.SEND(False)
Exit Sub
CEErr:
MsgBox "There has been a problem sending mail to " + szBudgH, vbInformation
Resume Next
End Sub
The szMsg contains some basic text for the body of the email but I want to add a doclink into that body..any idea's?
Sub ComposeEmail(szBudgH As String, szSubj As String, szMsg As String)
On Error GoTo CEErr
Set doc = db.CREATEDOCUMENT
Call doc.REPLACEITEMVALUE("From", szSender)
If itisatest = "Y" Then
szbudgetH = "Gordon Kinghorn/acg/uk/aon"
End If
Call doc.REPLACEITEMVALUE("SendTo", szBudgH + szcanon)
If szBudgH = "Rachel Saunders" Then
Call doc.REPLACEITEMVALUE("SendTo", szBudgH + "/ARS/UK/AON")
End If
Rem Call doc.REPLACEITEMVALUE("CopyTo", szSenderNotesName)
Call doc.REPLACEITEMVALUE("Subject", szSubj)
Call doc.REPLACEITEMVALUE("Body", szMsg)
Call doc.SEND(False)
Exit Sub
CEErr:
MsgBox "There has been a problem sending mail to " + szBudgH, vbInformation
Resume Next
End Sub