...
|
...
|
@@ -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'] = [];
|
...
|
...
|
|