I have a button that sends an email link via MS Outlook by saving the link as a .ndl file.
Each time the button is pressed, a copy of the .ndl is saved to the root of the user’s harddrive. Anyone know why it does this and is there a way to stop it?
Here’s the code:
’ Set mail Fields
With myItem
.to = SendTo
.Subject = "Network..."
.Body = "A new..."
’ Add the link
With .attachments.Add("C:\NSR_" & Gid & ".ndl", 1, 1, "NSR_" & Gid & ".ndl")
End With
’ Display Mail to user
.Display
End With
’ Close object references
Set appOutl = Nothing
Set myItem = Nothing
Set recMessage = Nothing
’ Save and close request
Call uidoc.save
Call uidoc.Close(True)