feature: api for sending emails with attachments (#15201)

Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
This commit is contained in:
Jian Qiu
2022-10-17 14:30:03 +08:00
committed by GitHub
co-authored by Qiu Jian
parent bc8b181d9f
commit df373cdaf6
43 changed files with 3124 additions and 151 deletions
+29
View File
@@ -0,0 +1,29 @@
// Copyright 2019 Yunion
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package notifyv2
import (
"yunion.io/x/onecloud/cmd/climc/shell"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/notify"
options "yunion.io/x/onecloud/pkg/mcclient/options/notify"
)
func init() {
cmd := shell.NewResourceCmd(&modules.EmailQueues)
cmd.List(new(options.EmailQueueListOptions))
cmd.Create(new(options.EmailQueueCreateOptions))
cmd.Show(new(options.EmailQueueOptions))
cmd.Perform("send", new(options.EmailQueueSendOptions))
}