Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Wwipstuff and attachments
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Wwipstuff and attachments
Miscellaneous
Thread ID:
00572092
Message ID:
00572092
Views:
48
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??

Thanks Sandy
Next
Reply
Map
View

Click here to load this message in the networking platform