mirror of
https://github.com/1f349/simplemail.git
synced 2024-12-30 11:56: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 {
|
||||
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user