the user registration solution pack uses the mail function already.
The sample script you provide seams a little lite, but it looks like your host sets the smtp server for you in the php.ini file.
Try leaving the smtP server and port setting blank in the wa globals so it will use the defaults set in the php.ini.