ocket8888 commented on a change in pull request #3534: TP Delivery Service
Generate SSL update, new letsencrypt generate and…
URL: https://github.com/apache/trafficcontrol/pull/3534#discussion_r339165310
##########
File path: traffic_ops/traffic_ops_golang/api/api.go
##########
@@ -747,3 +753,70 @@ func AddUserToReq(r *http.Request, u auth.CurrentUser) {
ctx = context.WithValue(ctx, auth.CurrentUserKey, u)
*r = *r.WithContext(ctx)
}
+
+func SendEmailFromTemplate(config config.Config, header string, data
interface{}, templateFile string, toEmail string) (int, error, error) {
Review comment:
This should have a GoDoc comment, if only so that I can easily read which
error is a "user error" and which is a "system error"
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services