Initial email settings UI commit

Added email settings page, settings now save in database, ability to send an email to client when it's created
This commit is contained in:
Arminas 2022-12-30 19:10:27 +02:00 committed by GitHub
parent f8a10417ea
commit c31636b66e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 568 additions and 25 deletions

View file

@ -14,3 +14,18 @@ type GlobalSetting struct {
ConfigFilePath string `json:"config_file_path"`
UpdatedAt time.Time `json:"updated_at"`
}
type EmailSetting struct {
SendgridApiKey string `json:"sendgrid_api_key"`
EmailFromName string `json:"email_from_name"`
EmailFrom string `json:"email_from"`
SmtpHostname string `json:"smtp_hostname"`
SmtpPort int `json:"smtp_port"`
SmtpUsername string `json:"smtp_username"`
SmtpPassword string `json:"smtp_password"`
SmtpNoTLSCheck bool `json:"smtp_no_tls_check"`
SmtpAuthType string `json:"smtp_auth_type"`
SmtpEncryption string `json:"smtp_encryption"`
DefaultEmailSubject string `json:"default_email_subject"`
DefaultEmailContent string `json:"default_email_content"`
}