MxmsSettings.json: Difference between revisions

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


=== Username ===
=== Username ===
If your SMTP server requires authentication provide a valid username here.
=== Password ===
=== Password ===
=== From address ===
=== From address ===

Revision as of 06:10, 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

From address

To address

Connection string to the database