Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/262.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何检查不工作忽略和我检查特定的域,而不是所有不存在的方法在laravel和PHP中未使用电子邮件ID if(计数($profiles)>0) { foreach($profile作为$profile) { $to_name=$profile->profi_Php_Laravel - Fatal编程技术网

如何检查不工作忽略和我检查特定的域,而不是所有不存在的方法在laravel和PHP中未使用电子邮件ID if(计数($profiles)>0) { foreach($profile作为$profile) { $to_name=$profile->profi

如何检查不工作忽略和我检查特定的域,而不是所有不存在的方法在laravel和PHP中未使用电子邮件ID if(计数($profiles)>0) { foreach($profile作为$profile) { $to_name=$profile->profi,php,laravel,Php,Laravel,如何检查不工作忽略和我检查特定的域,而不是所有不存在的方法在laravel和PHP中未使用电子邮件ID if(计数($profiles)>0) { foreach($profile作为$profile) { $to_name=$profile->profile_name; $to_mail=$profile->email; //邮件::to($to_Mail)->发送(新邮件($maildata)); $string=explode(@,$to_-mail); $text=$string[1];

如何检查不工作忽略和我检查特定的域,而不是所有不存在的方法在laravel和PHP中未使用电子邮件ID
if(计数($profiles)>0)
{
foreach($profile作为$profile)
{
$to_name=$profile->profile_name;
$to_mail=$profile->email;
//邮件::to($to_Mail)->发送(新邮件($maildata));
$string=explode(@,$to_-mail);
$text=$string[1];
如果($text!=“mail.dice.com”){
/*邮件::发送('emails.profile bulkmail',压缩('Mail_content','to_name','signature'),函数($message)使用($to_Mail,$reply_to,$from_name,$from_email,$subject)
{
如果($to_mail!='')
{
$message->from($from\u email,$from\u name);
$message->to($to\u mail)->replyTo($reply\u to)->subject($subject);
}
}); */
散装邮件日志($至邮件);
回显“邮件发送至$to_邮件
”; }否则 { $txt=“忽略”; 批量邮件日志($to_mail.'-'.$txt); 回显“邮件未发送至$to_邮件
”; } } }
if (count($profiles) > 0)
{
    foreach ($profiles as $profile)
                {
                    $to_name = $profile->profile_name;
                    $to_mail = $profile->email;
                            
                    // Mail::to($to_mail)->send(new AmazonBulkMail($maildata));
                            
                    $string = explode("@", $to_mail);
                            
                    $text = $string[1];

        if ($text != "mail.dice.com"){

            /* Mail::send('emails.profile-bulkmail', compact('mail_content','to_name','signature'), function($message) use($to_mail,$reply_to,$from_name,$from_email,$subject)
            {
                if($to_mail!='')
                {
                    $message->from($from_email,$from_name);
                    $message->to($to_mail)->replyTo($reply_to)->subject($subject);
                }

            }); */

            bulkmail_log($to_mail);
            echo "Mail send to $to_mail <br>";
        }else
        {
            $txt = "ignored";
            bulkmail_log($to_mail.'-'.$txt);
            echo "Mail NOt sent to $to_mail <br>";
        }
    }
}