General information
Title:
Wwipstuff and attachments
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only