mail.send ========= Sends mail using configured mail settings. This method is a job. .. raw:: html
Email message content and configuration.
No Additional PropertiesSubject line for the email message.
Formatted to HTML using Markdown and rendered using default email template.
Custom HTML (overrides text). If null, no HTML MIME part will be added to the email.
Email recipients. Defaults to all local administrators.
No Additional ItemsEmail CC recipients, if any.
No Additional ItemsIn seconds.
Defaults to "truenas".
Time limit for connecting to the SMTP server in seconds.
If set to true, an array compromised of the following object is required via HTTP upload:
headers (array)
content (string)
Example:
    [
      {
        "headers": [
          {
            "name": "Content-Transfer-Encoding",
            "value": "base64"
          },
          {
            "name": "Content-Type",
            "value": "application/octet-stream",
            "params": {
              "name": "test.txt"
            }
          }
        ],
        "content": "dGVzdAo="
      }
    ]
Queue the message to be sent later if it fails to send.
Any additional headers to include in the email message.
Optional mail configuration overrides for this message.
No Additional PropertiesThe sending address that the mail server will use for sending emails.
Display name that will appear as the sender name in outgoing emails.
Hostname or IP address of the SMTP server used for sending emails.
TCP port number for the SMTP server connection.
Type of encryption.
Whether SMTP authentication is enabled and user, pass are required.
SMTP username.
SMTP password.
OAuth configuration for email providers that support it or null for basic authentication.
An email provider, e.g. "gmail", "outlook".
OAuth client ID provided by the email provider.
OAuth client secret provided by the email provider.
OAuth refresh token used to obtain new access tokens for email authentication.
The message was sent successfully.