PowerShell Script to test SMTP settings

    Starting from Qlik NPrinting November 2017, you can check your SMTP settings using an in-built feature: https://help.qlik.com/en-US/nprinting/November2017/Content/Setup/HowSetUpE-mailNPrinting/Set-up-email.htm.


    Unlike NPrinting 16, version 17.x does not have an option to test the entered SMTP settings. You could run the attached PowerShell script to test your SMTP settings before entering them into NPrinting. You will need to make minor changes like specifying the SMTP server address & port number etc. The lines that need changing are listed in the comments at the beginning of the script.



    You may need to  set the execution policy to Unrestricted. To do that, first open Windows PowerShell Modules:


    1. run the PowerShell Cmdlet Get-ExecutionPolicy - make a note of the policy

    2. run the PowerShell Cmdlet Set-ExecutionPolicy Unrestricted

    3. Don't forget to revert to the original policy (noted in point 1) after running your tests.




    HTH - Daniel.