Re: Attachment Not Attaching In Lotus Notes
Hi,
Site_Path seems correct.... It is defined further up in the code (it's quite long code) I have added a msgbox in the code to display Site_Path at the point the attachment should happen and it shows the correct files path and name(eg "c:\Test\Filename") although it doesnt have the ".xls" on the end. Is this important?
I did however notice that I had Written the below code but had used Attachment in some parts which I have now, as shown below, changed to Attachment1. It didnt seem to solve the problem though.
Attachment1 = Site_Path
If Attachment1 <> "" Then
Set attachME = MailDoc.CreateRichTextItem("Attachment1")
Set EmbedObj1 = attachME.EmbedObject(1454, "", Attachment1, "Attachment1")
MailDoc.CreateRichTextItem ("Attachment1")
End If
Other than that I am still stuck as to what the problem is.
Thanks
James