Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Outlook 2003 and attachments
Message
 
 
À
09/11/2006 11:33:25
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01168436
Message ID:
01168516
Vues:
15
Looks like Outlook doesn't recognize files with spaces in the directory in the Attachments.Add method. If the directory doesn't have spaces, the code works fine.

I've tried all combinations
IF FILE(attarr(i))	
	lcFile = STRTRAN(attarr(i),["],[])	
	=MESSAGEBOX(m.lcFile)		
	mItem.Attachments.ADD(m.lcFile)
ENDIF
Using single quote as well, and I'm always getting this error. It's Outlook 2003.

Can someone please confirm the problem?

Thanks in advance.

UPDATE. I swear I tried to remove the space, but this code (with the messagebox) now worked. In other words, Outlook doesn't like "..." format and doesn't need quotes around the file name.

But here is another catch: if you don't call Display before save and send, the HTML shows with the broken link image though files are attached. If you don't have space in the directory, the images are shown inside the e-mail just fine.

But Display brings the Outlook forward and if I'm sending lots of e-mails, that's undesirable.

Any ideas of overcoming the problem?

Thanks again.

ONE MORE UPDATE. After I installed Yahoo to come to my Outlook following the link provided by Victor, I now recive e-mails with the picture embedded just fine without need to call Display. The only minor problem now is that e-mail is not saved in my Sent items. Though I'm not sure I need it to be saved there. On the other hand, how would I track them or see how do they look like?

Thanks.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform