Garry,
Try other tests, like:
- remove line with attachment, any error?
- if no errors, try another pdf file, if still error,
- try another file type for attachment, like txt, etc....
>Im having problems with automating emails. The application has been working fine for YEARS, but all of a sudden on one pc only I get:
>
>OLE error code 0x00000001: Incorrect function
>
>When trying to display outlook, My codes looks like this:
>
>loOutlook=CREATEOBJECT("Outlook.Application")
>loMessage=loOutlook.CreateItem(olMailItem)
>loMessage.To=somone@anaddress.com
>loMessage.Subject="test message"
>loMessage.Body="My test"
>loMessage.Attachments.Add(<PdfFile>)
>
>loMessage.Display()
>
>loMessage=.NULL.
>loOutlook=.NULL.
>
>
>any ideas?
>
>Gary.