...
|
...
|
@@ -188,8 +188,14 @@ class fob_ai_mail_auto_reply { |
|
|
$set['emails'] = @json_decode($set['emails'],true);
|
|
|
// 是否开启了
|
|
|
if($set['emails']&&(in_array($email,$set['emails'])||in_array('所有邮箱',$set['emails']))){
|
|
|
$c = explode('<body >',$set['content'])[1]??'';
|
|
|
$c = explode('</body>',$c)[0]??'';
|
|
|
$c = strip_tags($c);
|
|
|
$c = str_replace([" "],[""],$c);
|
|
|
$c = trim($c);
|
|
|
|
|
|
// 必须设置了内容
|
|
|
if($set['content']){
|
|
|
if(strlen($c)>0){
|
|
|
$set['week'] = @json_decode($set['week'],true);
|
|
|
// 是否满足周
|
|
|
if(!$set['week'] || in_array(date('w'),$set['week'])){
|
...
|
...
|
|