Add yaml field names

This commit is contained in:
Melon 2024-09-21 16:13:46 +01:00
parent 0565d6116b
commit 0a3262c32e
Signed by: melon
GPG Key ID: 6C9D970C50D26A25

12
mail.go
View File

@ -12,12 +12,12 @@ import (
)
type Mail struct {
Name string `json:"name"`
Tls bool `json:"tls"`
Server string `json:"server"`
From FromAddress `json:"from"`
Username string `json:"username"`
Password string `json:"password"`
Name string `json:"name" yaml:"name"`
Tls bool `json:"tls" yaml:"tls"`
Server string `json:"server" yaml:"server"`
From FromAddress `json:"from" yaml:"from"`
Username string `json:"username" yaml:"username"`
Password string `json:"password" yaml:"password"`
}
func (m *Mail) loginInfo() sasl.Client {