mirror of
https://github.com/kataras/iris.git
synced 2026-01-08 20:41:57 +00:00
E-mail through linux command with UseCommand configuration field
This commit is contained in:
@@ -22,3 +22,8 @@ type Mail struct {
|
||||
func DefaultMail() Mail {
|
||||
return Mail{}
|
||||
}
|
||||
|
||||
// IsValid returns true if the mail configs are valid
|
||||
func (m Mail) IsValid() bool {
|
||||
return (m.Host != "" && m.Port > 0 && m.Username != "" && m.Password != "") || m.UseCommand
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user