mirror of
https://github.com/1f349/simplemail.git
synced 2025-01-02 13:26:30 +00:00
Add yaml field names
This commit is contained in:
parent
0565d6116b
commit
0a3262c32e
12
mail.go
12
mail.go
@ -12,12 +12,12 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type Mail struct {
|
type Mail struct {
|
||||||
Name string `json:"name"`
|
Name string `json:"name" yaml:"name"`
|
||||||
Tls bool `json:"tls"`
|
Tls bool `json:"tls" yaml:"tls"`
|
||||||
Server string `json:"server"`
|
Server string `json:"server" yaml:"server"`
|
||||||
From FromAddress `json:"from"`
|
From FromAddress `json:"from" yaml:"from"`
|
||||||
Username string `json:"username"`
|
Username string `json:"username" yaml:"username"`
|
||||||
Password string `json:"password"`
|
Password string `json:"password" yaml:"password"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *Mail) loginInfo() sasl.Client {
|
func (m *Mail) loginInfo() sasl.Client {
|
||||||
|
Loading…
Reference in New Issue
Block a user