mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 18:51:03 +01:00
25 lines
636 B
Go
25 lines
636 B
Go
package config
|
|
|
|
// Mail keeps the configs for mail sender service
|
|
type Mail struct {
|
|
// Host is the server mail host, IP or address
|
|
Host string
|
|
// Port is the listening port
|
|
Port int
|
|
// Username is the auth username@domain.com for the sender
|
|
Username string
|
|
// Password is the auth password for the sender
|
|
Password string
|
|
// UseCommand enable it if you want to send e-mail with the mail command instead of smtp
|
|
//
|
|
// Host,Port & Password will be ignored
|
|
// ONLY FOR UNIX
|
|
UseCommand bool
|
|
}
|
|
|
|
// DefaultMail returns the default configs for Mail
|
|
// returns just an empty Mail struct
|
|
func DefaultMail() Mail {
|
|
return Mail{}
|
|
}
|