이전 목록 다음
채택완료

가입시 최고관리자에게 메일전송문의좀 드려요 형님들

 

Copy
if ($config[cf_email_mb_super_admin])     {        $subject = $mb_nick . " 님께서  가입하셨습니다.";                ob_start();        include_once ("./register_form_update_mail2.php");        $content = ob_get_contents();        ob_end_clean();        mailer($mb_nick, $mb_email, $admin[mb_email], $subject, $content, 1);    }

 

해당 코드 인거같습니다.

if문위에 sql을 넣어서 권한10인사람만 검색하여 e-mail 추출한뒤 배열에넣어서 해야될지 고민이많네요

 

ㅜㅜ

 

해결사 형님들 도와주시ㅂ시요 ㅠ 노력은 해봤습니다 퓨

 

|

답변 1개 / 댓글 1개

채택된 답변
+20 포인트

 

$emails[] = "test@test.com"; // 이메일주소1
$emails[] = "test2@test.com"; // 이메일주소2
$emails[] = "test3@test.com"; // 이메일주소3
$emails[] = "test4@test.com"; // 이메일주소4
$emails[] = "test5@test.com"; // 이메일주소5

 

  if ($config[cf_email_mb_super_admin]) 
    {
        $subject = $mb_nick . " 님께서  가입하셨습니다.";
        
        ob_start();
        include_once ("./register_form_update_mail2.php");
        $content = ob_get_contents();
        ob_end_clean();
foreach($emails as $email)
    {
        if ($email)         mailer($mb_nick, $mb_email, $email, $subject, $content, 1);     }

}

답변에 대한 댓글 1개

소중한 정보 감사합니다.

답변을 작성하려면 로그인이 필요합니다.