어려운 질문 정보
어려운 질문본문
아래 소스를 사용하여 게시판에 등록된글을 이멜일로 받고있습니다. 위 그림은 이메일로 받았을때 모양 입니다.
게시판에 이메일 주소와 연락처 등을 여분필드로 받았는데..
아래소스는 제목 ,게시자, 내용 만 이멜로 들어오고있습니다.
연락처 , 이메일도 나오게 하려면 어떻게 해야 하는지 답변 부탁드립니다.
아래쪽에 mailer($wr_name, $wr_email, $email, $subject, $content, 1); 여기에 추가해도 되지 않습니다.
추가된 필드
<?=$write[wr_1]?> ---> 연락처
<?=$ext9_06?> ----> 이메일
소스는 아래 링크의 소스를 이용하였습니다.
////////////////////////////////////////////////
// 받을 사람의 이메일주소를 넣어주세요.
// 받을 사람의 이메일주소를 넣어주세요.
$emails[] = "*** 개인정보보호를 위한 이메일주소 노출방지 ***"; // 이메일주소1
// 계속 추가할 수 있습니다.
////////////////////////////////////////////////
////////////////////////////////////////////////
if ($w == '')
{
$row = sql_fetch("select * from $write_table where wr_id = '$wr_id'");
{
$row = sql_fetch("select * from $write_table where wr_id = '$wr_id'");
$wr_subject = get_text(stripslashes($row[wr_subject]));
$tmp_html = 0;
if (strstr($row[wr_option], "html1"))
$tmp_html = 1;
else if (strstr($row[wr_option], "html2"))
$tmp_html = 2;
if (strstr($row[wr_option], "html1"))
$tmp_html = 1;
else if (strstr($row[wr_option], "html2"))
$tmp_html = 2;
$wr_content = conv_content(stripslashes($row[wr_content]), $tmp_html);
$wr_name = $row[wr_name];
$wr_name = $row[wr_name];
$subject = "'{$board[bo_subject]}' 게시판에 글이 올라왔습니다.";
$link_url = "$g4[url]/$g4[bbs]/board.php?bo_table=$bo_table&wr_id=$wr_id&$qstr";
$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_once ("./write_update_mail.php");
$content = ob_get_contents();
ob_end_clean();
include_once ("./write_update_mail.php");
$content = ob_get_contents();
ob_end_clean();
foreach($emails as $email)
{
if ($email)
mailer($wr_name, $wr_email, $email, $subject, $content, 1);
}
}
{
if ($email)
mailer($wr_name, $wr_email, $email, $subject, $content, 1);
}
}
댓글 전체
> 추가된 필드
> <?=$write[wr_1]?> ---> 연락처
> <?=$ext9_06?> ----> 이메일
>
> include_once ("./write_update_mail.php");
>
메일 화면에 보이는 것은 write_update_mail.php에 보이는 html이 보여지는 것입니다.
그러므로 추가된 필드를 write_update_mail.php 에 원하는 형식으로 추가하시면 됩니다.
> <?=$write[wr_1]?> ---> 연락처
> <?=$ext9_06?> ----> 이메일
>
> include_once ("./write_update_mail.php");
>
메일 화면에 보이는 것은 write_update_mail.php에 보이는 html이 보여지는 것입니다.
그러므로 추가된 필드를 write_update_mail.php 에 원하는 형식으로 추가하시면 됩니다.