From 2d7f57714b3b95f27c3159f02b33e17b816f7178 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Wed, 2 Jul 2025 17:30:28 +0200 Subject: dashboard: add send_email method The API method can be used to send a raw email on behalf of the GAE instance. --- dashboard/dashapi/dashapi.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'dashboard/dashapi') diff --git a/dashboard/dashapi/dashapi.go b/dashboard/dashapi/dashapi.go index 317fcb5a2..1f9dec94d 100644 --- a/dashboard/dashapi/dashapi.go +++ b/dashboard/dashapi/dashapi.go @@ -885,6 +885,19 @@ func (dash *Dashboard) UpdateReport(req *UpdateReportReq) error { return dash.Query("update_report", req, nil) } +type SendEmailReq struct { + Sender string + To []string + Cc []string + Subject string + InReplyTo string + Body string +} + +func (dash *Dashboard) SendEmail(req *SendEmailReq) error { + return dash.Query("send_email", req, nil) +} + type ( BugStatus int BugStatusReason string -- cgit mrf-deployment