Hi Cetin,
I took out my old code referring to AttachmentPosition, and I have tried the code you show below using AttachmentIndex. Alas, I'm still not having success. I'm still getting the same error that it can not find the attachment. Interestingly, after it didn't work, I removed your code and also continued to leave out my old code that referred to AttachmentPosition, and that still works with the old Windows Messaging client. Therefore, my AttachmentPosition code was superfluous anyway, I suppose because I am only dealing with 1 attachment. If dealing with multiple attachments, I suppose either AttachmentPosition or AttachmentIndex would be needed. But the main thing right now is that my application still isn't working with Outlook, which is a huge pain because so many of my user's are getting updated to Outlook and getting off the old Windows Messaging client. Would certainly appreciate any suggestions from anyone. Thanks, Chuck
>Chuck,
>Yes delete AttchmentPosition. It would look like (not sure of AttachmentIndex base value so I leave it to automation also) :
>
> If .AttachmentCount > 0
> .AttachmentIndex = .AttachmentIndex + 1
> Endif
> .AttachmentPathName = sys(5)+curdir()+;
> iif(mWhoGets = "P", "ChOPrice.txt","ChgOrder.txt")
>
>After seeing this works (I expect:), next I'd try collecting [mWhoGets = "P"] and [mWhoGets # "P"] recipients into 2 recipients list and mail only 2 (if appropriate to list multiple recipients).
>Cetin
>
>
>>Cetin,
>>I wondered about that since Outlook no longer positions the attachment icon in the body of the text the way that the older mail clients did. So, if I were to try AttachmentIndex in my code, would I do the following? ...
>>
>>Delete ThisForm.Message1.AttachmentPosition = (mMsgNoteTextLength - 1)
>>And use ThisForm.Message1.AttachmentIndex = 1
>>
>>TIA, Chuck
>>
Chuck Henry