From e883ab5fbc8ac63b7d8040db0c8e4601105bec18 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 4 Jun 2024 19:33:09 +0800 Subject: [PATCH] 1 --- webapp/services/MailApiService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/services/MailApiService.php b/webapp/services/MailApiService.php index 91bb2983..0318ccef 100644 --- a/webapp/services/MailApiService.php +++ b/webapp/services/MailApiService.php @@ -35,11 +35,11 @@ class MailApiService extends BaseService { 'unikey' => $unikey, 'subject' => $subject, 'content' => $content, - 'recipients' => array( + 'recipients' => json_encode(array( array( 'account_id' => $to, ) - ), + )), 'attachments' => json_encode($attachments), 'sendtime' => myself()->_getNowTime(), 'expiretime' => myself()->_getNowTime() + 3600 * 24 * 365 * 10,