HELP!!!!!!!!!!!!
I am try to use WWIPSTUFF to send an emal message. I have the latest registered copy of West Wind Client Tools.
This program sends email as long as I do NOT try to use cusername or cpassword.
With Username and password it always dies on this line in the CLASSLIB wwIPStuff which is the sendmail procedure in that class
*** ??? ras - 09/02/2002
*** Perform Base64 encoding here since base64 is missing in wwipstuff.dll code
*** Fix later
lcUsername = IIF(!EMPTY(this.cUsername),STRCONV(THIS.cUsername,13),"")
lcpassword = IIF(!EMPTY(this.cPassword),STRCONV(This.cPassword,13),"")
The error is always:
"Function argument value, type, or count is invalid"
on line:
lcUsername = IIF(!EMPTY(this.cUsername),STRCONV(THIS.cUsername,13),"")
HELP!!!!!!!!!!!!!!
Here is the code I am running. This code came directly out of wwipstuff samples
Close ALL
Clear ALL
Close DATABASES all
#INCLUDE WCONNECT.h
Set PROCEDURE TO wwUtils ADDITIVE
Set CLASSLIB TO wwIPStuff ADDITIVE
clear
o=CREATE("wwIPStuff")
Set MEMOWIDTH TO 200
*** Sending SMTP Mail
o.cMailServer="pearland.com" && "yourmail.server.net"
o.cSenderEmail="
sysop@pearland.com"
o.cSenderName="The Sysop"
o.cRecipient="Joel
"
*o.cCCList="Ricky Jr "
*o.cBCCList=""
o.cSubject="wwIPStuff Test Message"
o.cMessage="Who said this had to be difficult?"
o.cUsername = "joel@Pearland.com" && Optional
o.cPassword = "houston"
* o.cAttachment="d:\utl\hex.exe,d:\utl\kill.exe"
*? o.SendMailAsync() && Send message and return immediately w/o result
llResult = o.SendMail() && Send again - wait for completion
If !llResult
Wait window o.cErrorMsg
Else
Wait window nowait "Message sent..."
Endif
Retu