3
0

Fixed SMTP options env values

This commit is contained in:
Peter Grlica
2022-03-21 15:06:28 +01:00
parent cf0568cead
commit 65fa3d1551
3 changed files with 15 additions and 15 deletions

View File

@@ -289,42 +289,42 @@
# The SMTP server hostname.
# Type: string
# Default: localhost
# SMPT_HOST=localhost
# SMTP_HOST=localhost
###############################################################################
# The SMTP post.
# Type: int
# Default: <no value>
# SMPT_PORT=<no value>
# SMTP_PORT=<no value>
###############################################################################
# The SMTP username.
# Type: string
# Default: <no value>
# SMPT_USER=<no value>
# SMTP_USER=<no value>
###############################################################################
# The SMTP password.
# Type: string
# Default: <no value>
# SMPT_PASS=<no value>
# SMTP_PASS=<no value>
###############################################################################
# The SMTP `from` email parameter
# Type: string
# Default: <no value>
# SMPT_FROM=<no value>
# SMTP_FROM=<no value>
###############################################################################
# Allow insecure (invalid, expired TLS certificates) connections.
# Type: bool
# Default: <no value>
# SMPT_TLS_INSECURE=<no value>
# SMTP_TLS_INSECURE=<no value>
###############################################################################
# Type: string
# Default: <no value>
# SMPT_TLS_SERVER_NAME=<no value>
# SMTP_TLS_SERVER_NAME=<no value>
###############################################################################
###############################################################################

View File

@@ -5,7 +5,7 @@ import (
)
SMTP: schema.#optionsGroup & {
handle: "smpt"
handle: "smtp"
title: "Email sending"
// @todo remove explicitly defined expIdent and adjust the code

View File

@@ -66,13 +66,13 @@ type (
}
SMTPOpt struct {
Host string `env:"SMPT_HOST"`
Port int `env:"SMPT_PORT"`
User string `env:"SMPT_USER"`
Pass string `env:"SMPT_PASS"`
From string `env:"SMPT_FROM"`
TlsInsecure bool `env:"SMPT_TLS_INSECURE"`
TlsServerName string `env:"SMPT_TLS_SERVER_NAME"`
Host string `env:"SMTP_HOST"`
Port int `env:"SMTP_PORT"`
User string `env:"SMTP_USER"`
Pass string `env:"SMTP_PASS"`
From string `env:"SMTP_FROM"`
TlsInsecure bool `env:"SMTP_TLS_INSECURE"`
TlsServerName string `env:"SMTP_TLS_SERVER_NAME"`
}
ActionLogOpt struct {