作者 邓超

1

... ... @@ -166,14 +166,25 @@ class Home extends Base {
$sendData['email'] = $email['email'];
$sendData['nickname'] = $formData['nickname']??'';
$sendData['tos'] = $formData['tos'];
if(count($sendData['tos'])>100){
app()->e(['tos_number_error',100]);
}
// 抄送
$sendData['cc'] = [];
if(($formData['isCc']??0) && !empty($formData['cc'])){
$sendData['cc'] = $formData['cc'];
}
if(count($sendData['cc'])>10){
app()->e(['cc_number_error',10]);
}
// 密送
$sendData['bcc'] = [];
if(($formData['isBcc']??0) && !empty($formData['bcc'])){
$sendData['bcc'] = $formData['bcc'];
}
if(count($sendData['bcc'])>10){
app()->e(['bcc_number_error',10]);
}
$sendData['reply_to'] = [];//回复到那个邮件
//Attachments 附件 上传的
$sendData['attachment'] = [];
... ...
... ... @@ -67,6 +67,9 @@ return [
'to_cc' => '抄送',
'to_bcc' => '密送',
'cc_verify_error' => '抄送人邮箱地址错误 %s',
'cc_number_error' => '抄送人不能超过 %s 个',
'bcc_number_error' => '密送人不能超过 %s 个',
'tos_number_error' => '收件人不能超过 %s 个',
'bcc_verify_error' => '密送人邮箱地址错误 %s',
'attachment_upload_error' => '附件上传失败 %s',
... ...