Fixed passreset addin to work better with smtp.