Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Wwipstuff and attachments
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00572092
Message ID:
00572366
Vues:
27
>Hello All,
>I've been using this wonderclass wwPIStuff from the west-wind techmnologies to send emails to out salesforce during the night. I'm now trying to send an attachment and I keep getting an error message of "501 syntax error in parameters or arguments." Here is the code:
>x = dtoc(date()) 
x = strtran(x,'/','')
>ff = sys(5) + sys(2003) + '\' + x + '.zip'
>** this file has already been created
>o=CREATEOBJECT('wwIPStuff')
>o.cMailServer='mygate'
>o.cSenderEmail= 'me@my.com'
>o.cSenderName='My System' 
o.cRecipient= alltrim(salesforce.address) 
o.cSubject='Sales Bulletins' 
o.cMessage= 'Dear ' + alltrim(Proper(fname)) + ' ' + ;
  alltrim(Proper(lname)) + chr(10) + chr(13) + ;
  'See attached zip file'
>o.cAttachment= ff
>llResult = o.SendMail()
>I've tried &ff and (ff) but when tracing I see that o.cattachment is a character with the correct file name What am I doing wrong??
>

I just tried your code on my PC (Win2k SP2) and it worked. Make sure that you have the latest version of wwIPStuff class library. What's an actual value of the variable ff?
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform