폼메일 내용을 메일로 전송하려고 합니다. 채택완료
4Star
3년 전
조회 12,917
안녕하세요.
기존 질문 내용을 잘못 작성한 것 같아서 다시 글을 올립니다. ㅠㅠ
현재 폼메일 페이지에 내용을 작성하면 이메일로 전송되게 하려고 합니다.
전송을 시켜주는 코드는 아래와 같습니다.
</p>
<p>if($w == ""){</p>
<p> $online_sms_receive_email = base64_decode($remail);</p>
<p> // 문의글등록 이메일전송
if($w == '' && trim($online_sms_receive_email)) {
include_once(G5_LIB_PATH.'/mailer.lib.php');</p>
<p> $subject = $config['cf_title'].'홈페이지에 온라인문의가 접수되었습니다.';
$content = nl2br(conv_unescape_nl(stripslashes($on_content)));</p>
<p>
mailer($config['cf_admin_email_name'], $on_email, $online_sms_receive_email, $subject, $content, 1);
}</p>
<p>}</p>
<p>
$content = nl2br(conv_unescape_nl(stripslashes($on_content)));
위 부분에 $on_content 말고 다른 값, 예를 들어 on_phone(전화번호) 같은 값도 넣어주려면
PHP 코드를 어떻게 작성해야 할까요?;;
답변 부탁드립니다. 감사합니다.
댓글을 작성하려면 로그인이 필요합니다.
답변 3개
채택된 답변
+20 포인트
3년 전
$on_content .= "연락처 : ".$on_phone;
$content = nl2br(conv_unescape_nl(stripslashes($on_content)));
이렇게 추가해 주시면 되지 않을까요?
로그인 후 평가할 수 있습니다
답변에 대한 댓글 1개
4
4Star
3년 전
댓글을 작성하려면 로그인이 필요합니다.
3년 전
추가 피해자 방지 https://sir.kr/conflictconsultation/245" rel="nofollow noreferrer noopener" target="_blank">https://sir.kr/conflictconsultation/245
로그인 후 평가할 수 있습니다
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인
$all_content .= "연락처 : ".$on_phone;, "주소 : ".$on_adress;, "이름 : ".$on_name;
위와 같이 넣어주면 될까요?;; 죄송합니다. 기본적인 내용인데 PHP를 모릅니다 ㅠㅠ