메일변수관련 질문

안녕하세요

답변메일 자동발송은 메일 네임값이wr_email 값으로 발송이되는데요..

어떤부분을 수정해야 제가 하고싶은 $wr_11 값으로 답변메일이 발송될까요..

basic 스킨 기준으로 조언바랍니다.

if (!($w == "u" || $w == "cu") && $config[cf_email_use])
{
$emails = explode("\n", $mw_basic[cf_email]);

if (count($emails) > 0)
{
$wr_subject = get_text(stripslashes($wr_subject));

$tmp_html = 0;
if (strstr($html, "html1"))
$tmp_html = 1;
else if (strstr($html, "html2"))
$tmp_html = 2;

$wr_content = conv_content(stripslashes($wr_content), $tmp_html);

$warr = array( ""=>"입력", "u"=>"수정", "r"=>"답변", "c"=>"코멘트", "cu"=>"코멘트 수정" );
$str = $warr[$w];

$subject = "'{$board[bo_subject]}' 게시판에 {$str}글이 올라왔습니다.";
$link_url = "$g4[url]/$g4[bbs]/board.php?bo_table=$bo_table&wr_id=$wr_id&$qstr";

include_once("$g4[path]/lib/mailer.lib.php");

ob_start();
include ("$g4[bbs_path]/write_update_mail.php");
$content = ob_get_contents();
ob_end_clean();

foreach ($emails as $email)
{
$email = trim($email);
if (!$email) continue;
if ($email == "test@test.com") continue;
mailer($wr_name, $wr_email, $email, $subject, $content, 1);
write_log("$g4[path]/data/mail.log", "$email\n");
}
}
}
|

댓글 1개

아무도 답을 안주시네요. ^^;
그럼 확실치 않지만 제가..

아래

mailer($wr_name, $wr_email, $email, $subject, $content, 1);



mailer($wr_name, $wr_11, $email, $subject, $content, 1);

로 바꿔보시면 어떨지.. ^^

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기
🐛 버그신고