폼메일(그누보드 5.3) > 그누보드5 스킨

그누보드5 스킨

좋은 댓글과 좋아요는 제작자에게 큰힘이 됩니다.

폼메일(그누보드 5.3) 정보

게시판 폼메일(그누보드 5.3)

첨부파일

formmail.zip (33.8K) 1252회 다운로드 2018-04-18 16:51:32

본문

기존 https://sir.kr/g5_skin/19820 스킨 디자인을 그누보드 5.3버전으로 변경했습니다.

사용방법은 그누보드 설치경로에 업로드 하신후 http://localhost/formmail/formmail.php 형식으로 호출하시면 됩니다.

설정은 /formmail/php/config.inc.php파일의 설정들 수정 후 사용하시면 됩니다.

 


<?php
// USE SMTP OR mail()
// SMTP is recommended, mail() is disabled on most shared hosting servers.
// IF false : SMTP host/port/user/pass/ssl not used, leave empty or as it is!
$config['use_smtp']    = true;      // true|false
// SMTP Server Settings
$config['smtp_host']    = 'smtp.naver.com';   // eg.: smtp.mandrillapp.com
$config['smtp_port']    = 465;      // eg.: 587
$config['smtp_user']    = '********@naver.com';    // *** 개인정보보호를 위한 이메일주소 노출방지 ***
$config['smtp_pass']    = '********';    // password
$config['smtp_ssl']    = true;      // true for google (port 465), false for others
// Who receive all emails?
$config['send_to']    = '********@naver.com';   // destination of all emails sent throught contact form
// Email Subject
$config['subject']    = 'Company Contact Form'; // subject of emails you receive
?>
추천
16

댓글 전체

앗 답글주셔서 감사합니다. 제가 질문을 잘못드렸네요 ;; 올려주신 스킨은 너무 잘 됩니다.
화일도 첨부해 보내는 방법을 여쭤 보았던것입니다. ;; 죄송하지만 대략적이라도 방법을 알 수 있을까요?;;
이것 저것 적용해 보았지만 화일첨부 발송은 잘 되질 않네요 ㅜㅜ
select 를 이용해서 선택된 담당자에게 메일 보내려면  어찌 해야 할까요 ?

<?php

// USE SMTP OR mail()
// SMTP is recommended, mail() is disabled on most shared hosting servers.
// IF false : SMTP host/port/user/pass/ssl not used, leave empty or as it is!
$config['use_smtp'] = true; // true|false

// SMTP Server Settings
$config['smtp_host'] = 'smtp.daum.net';  // eg.: smtp.mandrillapp.com
$config['smtp_port'] = 465; // eg.: 587
$config['smtp_user'] = '********@daum.net'; // *** 개인정보보호를 위한 이메일주소 노출방지 ***
$config['smtp_pass'] = '******'; // password
$config['smtp_ssl'] = true; // true for google (port 465), false for others

// Who receive all emails?

//  $config['send_to'] = '*******@daum.com'; // destination of all emails sent throught contact form


$dept = $_POST['subject'];
if($dept == '생활용품') {
$config['send_to'] = '********@naver.com';
} else if($dept == '물관련제품') {
$config['send_to'] = '*************@naver.com';
} else if($dept == '신규개발관련') {
$config['send_to'] = '***********@nate.com';
}
// Email Subject
$config['subject'] = 'Company Contact Form'; // subject of emails you receive
?>
트리플님 덕분에 홈페이지 작업에 정말 많은 도움 되었습니다
먼저 감사드립니다!

한가지 문의사항이 있는데요.
http://localhost/formmail/formmail.php 경로가 아닌 main.php에
<?php include_once('./formmail/formmail.php'); ?>로 가져와서 메일을 보낼 수는 없을까요??

메인페이지로 include 하여 전송버튼 누르니 contact.js $.ajax 부분 error에 걸려 "Server Internal Error" 메세지가 출력 됩니다 ㅠ

답변 부탁드릴게요
전체 22 |RSS
그누보드5 스킨 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT