게시판 메일 발송 첨부파일 관련 채택완료
Copy
if(count($upload)){ $files_mail = array(); foreach($upload as $key=>$val)
{
$files_mail[] = attach_file($val['source'], "$g5[path]/data/file/$bo_table/" . $val['file']);
}
} // 중복된 메일 주소는 제거
$unique_email = array_unique($array_email);
$unique_email = array_values($unique_email);
for ($i=0; $i
검색해서 어떻게 어떻게 짜집기 해서 /bbs/write_update.php 파일의 780~790 라인 근처에
이렇게 소스 작성했는데 메일은 정상적으로 오는데 첨부파일은 안오네요 ㅠㅠ
뭐가 문젠가요? 스킨 쪽은 안건드려도 되죠?
답변 2개
채택된 답변
+20 포인트
8년 전
스킨쪽에서는 첨부파일 폼이 있어야 합니다. 그리고 첨부파일 폼명이 source 인지 file인지 지금 확인이 안되지만 스킨쪽에서 파일첨부 데이터를 받아서 첨부해야 발송이 되어지는 부분인데 첨부파일 네임명을 확인해 보셔야 할듯 싶습니다.
로그인 후 평가할 수 있습니다
답변에 대한 댓글 1개
�
8년 전
댓글을 작성하려면 로그인이 필요합니다.
8년 전
Copy
#variableFiles { width:100%; margin:0; border:0; }
#variableFiles td { padding:0px 0px 7px; border:0; }
#variableFiles input[type=file] { box-shadow : none; border: 1px solid #ccc !important; outline:none; }
#variableFiles .form-group { margin-left:0; margin-right:0; margin-bottom:7px; }
#variableFiles .checkbox-inline { padding-top:0px; font-weight:normal; }
첨부파일
추가하기
삭제하기
var flen = 0;
function add_file(delete_code) {
var upload_count = ;
if (upload_count && flen >= upload_count) {
alert("이 게시판은 "+upload_count+"개 까지만 파일 업로드가 가능합니다.");
return;
}
var objTbl;
var objNum;
var objRow;
var objCell;
var objContent;
if (document.getElementById)
objTbl = document.getElementById("variableFiles");
else
objTbl = document.all["variableFiles"];
objNum = objTbl.rows.length;
objRow = objTbl.insertRow(objNum);
objCell = objRow.insertCell(0);
objContent = "";
objContent += "파일 "+objNum+"
로그인 후 평가할 수 있습니다
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인
기본 basic 게시판인데요 메일을 체크하면 메일이 발송되었다고 관리자에게 메일이 가잖아요?
거기서 첨부파일도 같이 보내고 싶은거에요 ㅠㅠ