이메일 발송 질문!

오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.

오류 주소 :

자꾸 본문에 <br>태그가 삽입되는 현상이 있고요
네이버와 구글등은 아예 태그로 보입니다.
이부분 아시는분 답변 부탁드립니다.!


소스부분

$header = "Return-Path: <$fmail>\n";
$header .= "From: $fname <$fmail>\n";
$header .= "Reply-To: <$fmail>\n";
if ($cc) $header .= "Cc: $cc\n";
if ($bcc) $header .= "Bcc: $bcc\n";
$header .= "MIME-Version: 1.0\n";
//$header .= "X-Mailer: SIR Mailer 0.91 (sir.co.kr) : $_SERVER[SERVER_ADDR] : $_SERVER[REMOTE_ADDR] : $g4[url] : $_SERVER[PHP_SELF] : $_SERVER[HTTP_REFERER] \n";
// UTF-8 관련 수정
$header .= "X-Mailer: SIR Mailer 0.92 (sir.co.kr) : $_SERVER[SERVER_ADDR] : $_SERVER[REMOTE_ADDR] : $g4[url] : $_SERVER[PHP_SELF] : $_SERVER[HTTP_REFERER] \n";

if ($file != "") {
$boundary = uniqid("http://sir.co.kr/");

$header .= "Content-type: MULTIPART/MIXED; BOUNDARY=\"$boundary\"\n\n";
$header .= "--$boundary\n";
}

if ($type) {
$header .= "Content-Type: TEXT/HTML; charset=$g4[charset]\n";
if ($type == 2)
$content = nl2br($content);
} else {
$header .= "Content-Type: TEXT/PLAIN; charset=$g4[charset]\n";
$content = stripslashes($content);
}


|

댓글 1개

if ($type) {
$header .= "Content-Type: TEXT/HTML; charset=$g4[charset]\n";
if ($type == 2)
$content = nl2br($content);
} else {
$header .= "Content-Type: TEXT/PLAIN; charset=$g4[charset]\n";
$content = stripslashes($content);
}

$type 을 2가 아닌 다른 값으로 넘겨줘야 합니다.
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
12년 전 조회 5,927
12년 전 조회 2,389
12년 전 조회 2,313
12년 전 조회 1,039
12년 전 조회 1,732
12년 전 조회 1,569
12년 전 조회 1,690
12년 전 조회 1,040
12년 전 조회 1.1만
12년 전 조회 1,639
12년 전 조회 1,603
12년 전 조회 1,715
12년 전 조회 1,604
12년 전 조회 1,893
12년 전 조회 1,476
12년 전 조회 1,959
12년 전 조회 1,572
12년 전 조회 1,925
12년 전 조회 1,570
12년 전 조회 1,837