Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Outlook 2003 and attachments
Message
From
09/11/2006 10:11:11
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01168436
Message ID:
01168439
Views:
12
>Hi everybody,
>
>I have a procedure written by someone which allows to Send HTML pages by Outlook. This procedure first fixes HTML, in other words it puts absolute paths for the images (jpg) and creates these images in the source directory of the project (in my case c:\Send Mail). It then sets HTMLBody and also attaches the files using attachements.Add method. The files are there and the string is
>"c:\Send Mail\myFile.jpg" with the double quotes around the string.
>
>The Outlook complains that the directory or file name is not found, though as I said, the file is there, on the line
>
>mItem.Attachments.ADD(attarr(i))
>
>The HTMLBody is set prior to Attachments.Add
>
>Do you know what could be wrong?
>
>Thanks in advance.

Does this work ? (ie, without the quotes)
FileName = "c:\Send Mail\myFile.jpg"
mItem.Attachments.ADD(m.FileName)

or 
local attarr[1], i
i = i 
attarr[1] = "c:\Send Mail\myFile.jpg"
mItem.Attachments.ADD(attarr[ m.i ] )
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform