1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-23 21:07:03 +00:00

E-mail sender

This commit is contained in:
Makis Maropoulos
2016-06-01 15:29:38 +03:00
parent 83d3e076a4
commit 7f56cdea8c
6 changed files with 119 additions and 1 deletions

19
config/mail.go Normal file
View File

@@ -0,0 +1,19 @@
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
}
// DefaultMail returns the default configs for Mail
// returns just an empty Mail struct
func DefaultMail() Mail {
return Mail{}
}