t
This commit is contained in:
parent
ee454aeabe
commit
2fba6af769
|
@ -14,7 +14,7 @@ import (
|
||||||
|
|
||||||
const apiURL = "https://api.mailgun.net/v3/%s/messages"
|
const apiURL = "https://api.mailgun.net/v3/%s/messages"
|
||||||
|
|
||||||
func mailgun_send(to string, data map[string]interface{}, subject string, template string) error {
|
func MailgunRest(to string, data map[string]interface{}, subject string, template string) error {
|
||||||
var mailgunAPIKey = os.Getenv("MAILGUN_API_KEY")
|
var mailgunAPIKey = os.Getenv("MAILGUN_API_KEY")
|
||||||
var mailgunDomain = os.Getenv("MAILGUN_DOMAIN")
|
var mailgunDomain = os.Getenv("MAILGUN_DOMAIN")
|
||||||
|
|
||||||
|
@ -85,5 +85,5 @@ func SendMailgun(to []string, event string, data map[string]interface{}) error {
|
||||||
|
|
||||||
// TODO: language selection logic here
|
// TODO: language selection logic here
|
||||||
|
|
||||||
return mailgun_send(to[0], data, subject, template)
|
return MailgunRest(to[0], data, subject, template)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user