Hi Richard,
Don't know if yopu ever sovled this puzzle but I think I have found the answer. Please let me know if it works for you
Public Function SendMail()
Dim olAPP As Object
Dim olNamespace As Object
Dim stpEmail
Dim oItem
Set stpEmail = CreateObject("Redemption.SafeMailItem") 'Create an instance of Redemption.SafeMailItem
Set olAPP = CreateObject("Outlook.Application")
Set olNamespace = olAPP.GetNamespace("MAPI")
olNamespace.Logon
Set oItem = olAPP.CreateItem(0) 'Create a new message
With oItem
.Recipients.Add "
[email protected]" 'm_RecipEmail
.Recipients.ResolveAll
.Subject = "m_Subject"
.Importance = olImportanceNormal 'Normal importance
.Body = "m_Note"
.Send
End With
'Clean Up
stpEmail.Item = oItem
Set oItem = Nothing
olNamespace.Logoff
Set olNamespace = Nothing
Set olAPP = Nothing
Set stpEmail = Nothing
End Function
This does not close access down anymore