t
This commit is contained in:
@@ -14,7 +14,7 @@ import (
|
||||
|
||||
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 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
|
||||
|
||||
return mailgun_send(to[0], data, subject, template)
|
||||
return MailgunRest(to[0], data, subject, template)
|
||||
}
|
||||
|
Reference in New Issue
Block a user