... nRetCode IF empty(cToWhom) Msginfo("Invalid Email Address!") RETURN NIL ENDIF if ! Empty(cFiles) aadd(afiles,{cfiles,""}) endif * nRetCode := MAPILogOn() /* IF nRetCode == -1 MsgStop( "Error initializing mail" ) RETURN NIL ENDIF */ nRetCode = MAPISendMail( , , ,; DToS( date() ) + " " + time(), ...