aboutsummaryrefslogtreecommitdiffstats
path: root/dashboard/dashapi
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2025-07-02 17:30:28 +0200
committerAleksandr Nogikh <nogikh@google.com>2025-07-03 09:04:38 +0000
commit2d7f57714b3b95f27c3159f02b33e17b816f7178 (patch)
tree9eef9952542c01446eed2d48cab78f3ecd40b27e /dashboard/dashapi
parenta0492970c27ad81d0f085e54c30e779f2468c74e (diff)
dashboard: add send_email method
The API method can be used to send a raw email on behalf of the GAE instance.
Diffstat (limited to 'dashboard/dashapi')
-rw-r--r--dashboard/dashapi/dashapi.go13
1 files changed, 13 insertions, 0 deletions
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