It looks like on line 25 you have:
set WA_MailObject = WAUE_Definition()
It should use the syntax:
set WA_MailObject = WAUE_Definition(host,port,timeout,username,password,useAuth)
try leaving them all but the host setting blank like:
set WA_MailObject = WAUE_Definition("localhost","","","","","")