mattjackson220 commented on a change in pull request #4077: updated SMTP to use 
Login Auth
URL: https://github.com/apache/trafficcontrol/pull/4077#discussion_r342292975
 
 

 ##########
 File path: traffic_ops/traffic_ops_golang/api/api.go
 ##########
 @@ -747,3 +753,74 @@ func AddUserToReq(r *http.Request, u auth.CurrentUser) {
        ctx = context.WithValue(ctx, auth.CurrentUserKey, u)
        *r = *r.WithContext(ctx)
 }
+
+// SendEmailFromTemplate allows a user to input an html template to format an 
email.  It parses the template and creates a message before calling the 
SendMail method.
+// SendEmailFromTemplate returns (in order) an HTTP status code, a 
user-friendly error, and an error fit for
+// logging to system error logs. If either the user or system error is 
non-nil, the operation failed,
+// and the HTTP status code indicates the type of failure.
+func SendEmailFromTemplate(config config.Config, header string, data 
interface{}, templateFile string, toEmail string) (int, error, error) {
 
 Review comment:
   done

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to