Updating code for new version of Network.SMTP.Client