Defining the SMTP Server

Follow

Configure or Update the SMTP Server in JAMS

  1. Start the JAMS Client as an administrator.
  2. Click the Configuration option in the Shortcuts bar.
    Shortcut_menu.png
  3. Under the Email section, go to the SMTP Server configuration setting.
  4. Enter the name of the desired SMTP server.
  5. Click the Save button in the Control Bar.
  6. Restart the JAMS Scheduler service to apply these changes. This will not impact any Jobs in the Schedule or any Jobs that are executing.

Configure Authentication to the SMTP Server

Users can enable SMTP authentication through two different methods:

  • JAMS Scheduler Configuration - Edit the JAMSScheduler.exe.config file. 
    OR
  • .NET Configuration - Edit the .NET Framework Machine.config file.

NOTE: Only one of these methods should be used in an environment.


 

JAMS Scheduler Configuration

  1. Open the JAMSScheduler.exe.config file, which is located by default in C:\Program Files\MVPSI\JAMS\Scheduler.

  2. Insert the code shown below directly before the </configuration> tag.
  3. Update it to match your environment.
      <system.net>
      <mailSettings>
      <smtp deliveryMethod="Network">
      <network defaultCredentials="false" port="25" host="your.host.name.com" enableSsl = "true" userName="me@xyzcom" password="abc123" />
      </smtp>
      </mailSettings>
      </system.net>
  4. Save the file. 
  5. Restart the JAMS Scheduler service.

 

.NET Configuration


NOTE: Unless it is overridden, the SMTP server settings in the .NET Framework Machine.config file will also apply to all applications on the machine that use the .NET Framework SmtpClient class.


  1. Open the Machine.config file, which is located by default in C:\Windows\Microsoft.Net\Framework64\v4.0.30319\Config.
  2. Insert the code shown below directly before the </configuration> tag. 
  3. Update it to match your environment.
      <system.net>
      <mailSettings>
      <smtp deliveryMethod="Network">
      <network defaultCredentials="false" port="25" host="your.host.name.com" enableSsl = "true" userName="me@xyzcom" password="abc123" />
      </smtp>
      </mailSettings>
      </system.net>
  4. Save the file.
  5. Restart the machine.

 


You can find more information on the .NET Framework Machine configuration at the link below:

https://msdn.microsoft.com/en-us/library/ms164242(v=vs.110).aspx

Have more questions? Submit a request

Comments

  • Avatar
    Rajesh Venkatraman

    office 365 smtp service needs authentication. What is the best method to store the credentials?

  • Avatar
    Gennaro Piccolo

    Hello Rajesh,

    As shown in the example above, the credentials need to be stored in the configuration file.
    They need to reside in the JAMSScheduler.exe.config or in machine.config.
    If those credentials need to be secured, I would limit access to either of those files to specific groups or users in Active Directory so that users cannot access those files specifically. Microsoft does not provide a secure way to store those credentials for authentication to the SMTP server.

  • Avatar
    swilliams

    Just to add to your walk through, you need to add enableSsl="true" and replace port="25" with port="587" and make sure that the from address is the same as your smtp credentials in order for o365 to work.