Email settings and troubleshooting

Email settings and troubleshooting

This article focuses on the interaction between TMS and an SMTP email server. Many of the settings will require input from your local IT department as these will need to be set up on both the TMS side and the email server side.

 

The "Email" tab

The TMS email settings can be found in both WinTMS (“System”->”Maintain system preferences”->”Email” tab) and TMSWeb (“System preferences”->”Email”). These are the basic setting to allow TMS to communicate with the email server.


You can define the following settings:

SMTP settings

SMTP server – hostname or IP address of the email server

SMTP port – the port the email server listens on (usually port 25 or 587, occasionally 465)

From name – the friendly name emails are sent from. See the “Web” tab section for more information.

From email address – the email address emails are sent from. See the “Web” tab section for more information.

Authentication

SMTP account – account name used to log into the email server.

SMTP password – password used to log into the email server.

Connection security

Use a secure connection – enable this to use an encrypted connection to the email server.

Use STARTTLS – use opportunistic (optional) encryption (if supported by your email server).

Version – which encryption version to use or Negotiate to allow the system to choose on the fly.

 

The WinTMS Email settings tab also includes a “Test” button that can be used to ensure the above settings work.

 

 The "Web" tab

The “Web” tab (WinTMS->”System”->”Maintain system prefences”->”Web”) includes one further setting that effects the way TMS sends emails – the “Sender address from” setting.


User” mode – when in this mode, TMS will attempt to impersonate the sender by making the email appear to come from an employee or supervisor. Any emails which are unable to be impersonated will be sent in “SMTP address” mode. An example of this mode would be the email generated when an employee requests an absence; TMS will generate an email that appears to come from the employee that requested the absence.

SMTP address” mode – when in this mode, TMS will always use the email address specified in the “Email” tab->”From email address” field. Examples of this mode would be any system email, such as Scheduled Messages or Return to Work notifications.

 

 

Troubleshooting

(Email could not be sent)

When using TMSWeb, you may find that some actions, while successful, have an additional “Email could not be sent” at the end of the success message. You can find further details about the failure by checking the Obtaining "500 internal server error" details page. As you do not receive an error ID, you will need to recreate the error and note down the exact time before checking the error logs.

TMS can send via the WinTMS “Test” button but employee holiday requests are not received.

This is most often seen when migrating to an Office365 solution. The account specified in WinTMS->”System”->”Maintain system preferences”->”Email”->”SMTP account” does not have permissions to impersonate employees as per the “User” mode. This will be accompanied by error logs containing the text
5.2.0 STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied; Failed to process message due to a permanent exception with message Cannot submit message.

This can be resolved by changing the settings on your email server to allow the “SMTP account” to send as any email address. Your IT department will need to make this change.

Alternatively, if you do not mind that employee absence requests come from the TMS system email address, change the “Web” tab->”Sender address from” to be “SMTP account”.

Authentication failed because the remote party has closed the transport stream.

This is most often seen when using Office365. We believe that Microsoft is in the process of turning off TLS1.0, which is causing older versions of TMSWeb to fail when sending emails. If you require an updated version of TMS 8, please raise a support ticket.
System.Net.Mail.SmtpException: Failure sending mail. ---> System.IO.IOException: Authentication failed because the remote party has closed the transport stream.
TMS 7 is also effected by this issue, but there is no fix for this within TMS. In order to confirm, you need to turn on logging in the web.config file, see "TMS website extended logging" for information on how to do this. The only known fix for this is to turn off client side TLS 1.0 and 1.1 on the TMS server as per https://docs.microsoft.com/en-us/windows-server/security/tls/tls-registry-settings#tls-dtls-and-ssl-protocol-version-settings

Intermittent email failure

We have seen an intermittant email failure with older versions of TMS 8. The best description that we can give is that, every now and again, a single email will fail. Generally you will be unable to recreate the issue, however, whenever the error happens, it will produce an erro log containing the text
System.Net.Mail.SmtpException: Failure sending mail. ---> System.IO.IOException: Unable to read data from the transport connection: An established connection was aborted by the software in your host machine.
This has been resolved in TMS 8.36.8.1. If you require an updated version of TMS 8, please raise a support ticket.

    • Related Articles

    • Changing terminal network settings

      Changing terminal network settings     The Mitrefinch MF500/700/900 series terminal uses a special menu to set up the basic terminal functionality. The main keys normally have an icon next to them to represent the function associated with the key. ...
    • SMS Clocking with Esendex

      Introduction This guide is intended to help set up SMS clocking on your TMS 8 system. This feature can be used by Employees to register Clockings using their mobile device via SMS messages. This is achieved by using a service called Esendex which ...
    • Details to provide for a potential engineer visit

      If you suspect that you have a mitrefinch hardware related fault and have already followed our useful troubleshooting article Mitrefinch Unit Fault - Customer Checklist. Then you may require a mitrefinch engineer onsite to investigate further once ...
    • TMS 8 8.28.0.0 Release Report

      We are pleased to announce the latest release of TMS 8: version 8.28.0.0! This version of TMS 8 introduced the following new feature: Enhanced Employee details security A new message can appear on your Dashboard if you are trying to view an Employee ...
    • Best practice for raising a ticket with mitrefinch support

      Introduction The purpose of this article is to provide guidance on how best to raise mitrefinch support ticket. As a ticket with concise, useful information can be the difference between an instant solution and one that takes hours or days. Before ...