-1
문자열에서 여러 이메일에 하나의 메시지를 보내려면 어떻게합니까 $ 이메일 예 : 메일을 보내는 코드를 실행 내 soluction내가 어떻게 내가 같은 문자열이
문자열에서 여러 이메일에 하나의 메시지를 보내려면 어떻게합니까 $ 이메일 예 : 메일을 보내는 코드를 실행 내 soluction내가 어떻게 내가 같은 문자열이
시도 분할 이메일 문자열에 미치는 영향에 대한 각각의 이메일
$to = '[email protected]';
$msg = 'SEND these to each email above thanks';
$to = '[email protected]';
$msg = 'SEND these to each email above thanks';
$to = '[email protected]';
$msg = 'SEND these to each email above thanks';
foreach($email as $email)
{
$to = $email["to"];
$subject = 'the subject';
$message = '$msg';
$headers = 'is this really? ';
mail($to, $subject, $message, $headers);
}
큰 감사
<?php
$emails = '[email protected],[email protected]';
$emailsSplitted = explode(',', $emails);
foreach ($emailsSplitted as $email) {
// ...
// use here the variable $email to send the message
}
시작 '$ email'은 배열이 아니므로'explode()'를 사용하여 하나를 만듭니다. – nogad
@nogad 나는 당신의 아이디어를 얻지 못했고 어떤 코드 예제를 가지고 있습니까? – user9107323