did you copy and paste the updated code, or did you just remove the "yourmailserver.yourd omain.com" from your code.
look closely at the updated code, and you will see that ray also added an extra parameter to the function call. if you only removed "yourmailserver.yourd omain.com" from your code, you will still have 5 parameters:
$WA_MailObject = WA_SecurityAssist_Definition("","25","","","");
instead of the 6 that are needed:
$WA_MailObject = WA_SecurityAssist_Definition("","25","","","","");