Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Outlook 2003 and attachments
Message
 
 
To
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:
01168441
Views:
14
>>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 ] )
>
I put strtran(attArr[m.i],["],"") and it gave the same error. May be HTMLBody and Attachments don't like each other? I'm not sure why it doesn't work, AFAIK this code is used in other projects and it works fine.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform