mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Merge pull request #16852 from gouqi11/fixNotifyContactByMobileBug
fix(notify): fix email verify empty error
This commit is contained in:
@@ -108,6 +108,12 @@ func (self *VerificationSendTask) OnInit(ctx context.Context, obj db.IStandalone
|
||||
}
|
||||
param.RemoteTemplateParam = api.SRemoteTemplateParam{Code: verification.Token}
|
||||
param.Receivers = notifyReceiver
|
||||
if len(emailMsg.Subject) == 0 {
|
||||
emailMsg.Subject = param.Title
|
||||
}
|
||||
if len(emailMsg.Body) == 0 {
|
||||
emailMsg.Body = param.Message
|
||||
}
|
||||
param.EmailMsg = emailMsg
|
||||
driver := models.GetDriver(contactType)
|
||||
err = driver.Send(param)
|
||||
|
||||
Reference in New Issue
Block a user