Change @NewSMTP to a valid server name or IP address or leave NULL if you just want to generate the accounts as they are.
To skip the ping test, simply change @TestPing to 0.
If you have many accounts then it might be necessary to remove
@SQL = @SQL +
from the SELECT statement.
This will return each accounts TSQL in table format.
For SMTP authentication users, remember to change each users password before you run the generated script.
If there is only one account or only one password for multiple accounts then set the @PW variable.