MxmsSettings.json: Difference between revisions

From MXMS Wiki
Jump to navigationJump to search
Line 30: Line 30:


=== Password ===
=== Password ===
If your SMTP server requires authentication please provide a valid password here. If you don't need authentication this parameter can be left blank or be omitted.
=== From address ===
=== From address ===
=== To address ===
=== To address ===


== Connection string to the database ==
== Connection string to the database ==

Revision as of 06:11, 31 March 2026

An example mxmsSettings.json file open in Visual Studio
An example mxmsSettings.json file open in Visual Studio

To provide a flexible and scalable environment, we use JSON (JavaScript Object Notation) for all system settings and user preferences which change from instance to instance. JSON is a lightweight, text-based data format that is easy for humans to read and write, and easy for machines to parse and generate. By modifying the configuration file, you can customize the behavior of the application without needing to touch the underlying source code.

Example configuration

{
  "MailServer": {
    "Server": "my.smtp-server",
    "From": "my@default_fromaddress.com",
    "To": "my@default_toaddress.com",
    "Port": 587,
    "EnableSsl": true,
    "Username": "username@my.smtpserver",
    "Password": "password@my.smtpserver"
  },
  "ConnectionString": "server=localhost;database=my-database.mxms;user id=username;password=password"
}

Mail server settings

MXMS requires a valid SMTP server to send various system mails, e.g. password reset mails or welcome mails and to send mails using the built-in mail sender system. Currently only a standard SMTP mailserver is supported.

Server

Provide a valid DNS name or IP address of the SMTP server to be used.

Port

If the SMTP server uses a port other than the default port a port can be provided

Username

If your SMTP server requires authentication provide a valid username here.

Password

If your SMTP server requires authentication please provide a valid password here. If you don't need authentication this parameter can be left blank or be omitted.

From address

To address

Connection string to the database