Unrecognized attribute 'username'

Unrecognized attribute 'username' in mailsettings.

Message:
Unrecognized attribute 'username'. Note that attribute names are case-sensitive. (C:\Program Files (x86)\Business Analyze\vdir\web.config line 207)

Details:
System.Configuration.ConfigurationErrorsException

Exception found in Analyze PRO version 4.1.2, 4.1.1, 4.0

Appears all places where you use mail sending; Examples: Send e-mail from a dashboard, user syncronisation with mail alert..

This failue come from an attribute which is case-sensitive. The correct attribute should be "userName".

Example of a correct web.config section for thoose using authentication against the mailserver:

  <system.net>

    <mailSettings>
      <smtp>
        <network host="mailserver" userName="test" password="test" port="25" />
      </smtp>
    </mailSettings>
  </system.net>
 

Allowed attributes in the smtp network settings is: 

<network
  clientDomain="string" 
  defaultCredentials="true|false"
  enableSsl="true|false"
  host="string" 
password="string"
  port="integer" 
targetName="string"
userName="string"
/>

For more information check out Microsofts documentation.