여러 이메일을 보내려고하는데 다음과 같은 오류가 반환됩니다.
응답 코드 354를 예상했지만 "550 5.7.0 요청 된 작업이 수행되지 않았습니다. 초당 이메일이 너무 많음"메시지와 함께 "550"코드가 있습니다.
$reciverss = array_merge($admins, $workers); // finalizing my queries and joining two arrays in one
// getting input data
$details = array(
'body' => $request->input('body'),
'subject' => $request->input('subject'),
);
// getting receivers email addresses from my merged array and try to send input data to them as email
foreach($reciverss as $receive){
Mail::to($receive->email)->send(new PICMAIL($details));
}
내 데이터는 $rereciverss
다음과 같습니다.
[{email: "[email protected]", username: "admin", userId: 1},…]
0: {email: "[email protected]", username: "admin", userId: 1}
1: {email: "[email protected]", username: "employee", userId: 2}
2: {email: "[email protected]", username: "non employee", userId: 3}
기본적으로 이메일을 보내려면 이메일을 받아야하지만 위에서 언급 한 오류가 반환됩니다.
어떤 생각?
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다