1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
<? include("./_common.php"); include("../../manage/category/common.php");
if($_SESSION["nomem_hash".$nomem_hash_h]!=$_SERVER['REMOTE_ADDR']){ echo "Á¢±ÙºÒ·®"; exit; }
$reg_date = date('Y-m-d H:i:s',Time()); //»ó´ãÀÏÀÚ if($smname_opt!='1'){ $smname = $smname_opt; }
if($smtitle=='±âŸ'){ $smtitle = $smtitle_etc; }
if($smoption=='±âŸ'){ $smoption = $smoption_etc; }
$smhp = $smhp1."-".$smhp2."-".$smhp3;
$telname = $_COOKIE['USERID'];
if($smemail!='ºÒ¸¸Á·'){ $smtitle = ""; }
$insertQry = "INSERT INTO mBoard_cus_after set smcompany = '{$smcompany}',smhp = '{$smhp}',smmailaddr = '{$smmailaddr}', cus_date = '{$cus_date}', smname = '{$smname}', smtel = '{$smtel}', smemail = '{$smemail}', smoption = '{$smoption}', smtitle = '{$smtitle}', smdetail = '{$smdetail}', reg_date = '{$reg_date}', ipadd = '{$ipadd}', telname = '{$telname}', state = '0' ";
MYSQL_QUERY($insertQry); //echo $insertQry; exit;
include("./lib/PHPMailer5/PHPMailerAutoload.php"); // phpmailer 5 ¸ðµâ ±×´©º¸µå 2.0 ¸ðµâÇÏ°í ¸î¸î ¸í·É¾î³ª ´ë¼Ò¹®ÀÚ³ª ±âŸ Ʋ¸²
$to1='mjsoft@naver.com'; $to2='hjw179@naver.com'; $subject="mjsoft.co »ó´ãÈıⰡ µî·Ï µÇ¾ú½À´Ï´Ù."; //$msg="¼º¸í:$username\n¿¬¶ôó:$btellephone\nÁ¦¸ñ:$title\n³»¿ë:$detail";
ob_start(); include 'counsel_after_mail.php'; $content = ob_get_contents(); ob_end_clean();
$content = str_replace("[==Mcompany==]",$smcompany,$content); $content = str_replace("[==mtel==]",$smhp,$content); $content = str_replace("[==Memail==]",$smmailaddr,$content); $content = str_replace("[==cus_date==]",$cus_date,$content); $content = str_replace("[==smtel==]",$smtel,$content); $content = str_replace("[==smname==]",$smname,$content);
$content = str_replace("[==smoption==]",$smoption,$content); $content = str_replace("[==smemail==]",$smemail,$content); $content = str_replace("[==smtitle==]",$smtitle,$content); $content = str_replace("[==smdetail==]",$smdetail,$content);
$mail = new PHPMailer;
$mail->IsSMTP(); $mail->Host = "smtp.naver.com"; $mail->SMTPAuth = true; $mail->Port = "465"; $mail->SMTPSecure = "ssl"; // SSLÀ» »ç¿ëÇÔ $mail->Username = "1000y3"; $mail->Password = "mj15668680"; $mail->setFrom("1000y3@naver.com", "¿¥Á¦À̼ÒÇÁÆ®");
$mail->addAddress($to1); $mail->addAddress($to2); $mail->Subject = $subject; $mail->isHTML(true); $mail->Body = "{$content}<br>"; if (!$mail->send()) { print_r("¸ÞÀÏ Àü¼Û¿¡ ½ÇÆÐÇÏ¿´½À´Ï´Ù. <br>º¸³»´Â ¸ÞÀÏ ¼³Á¤À̳ª ¿©·¯°¡Áö¸¦ È®ÀÎÇØº¸½Ã±â ¹Ù¶ø´Ï´Ù. <br>±âÃʵî·Ï->¸ÞÀϼ³Á¤¿¡¼ ¼³Á¤À» È®ÀÎÇϽñ⠹ٶø´Ï´Ù.<br>"); print_r($mail->ErrorInfo); exit; } else {
} ?>
<script> alert("Á¤»óÀûÀ¸·Î µî·Ï µÇ¾ú½À´Ï´Ù."); parent.location.href = "http://<?php echo $_SERVER['SERVER_NAME'];?>/html/millennium/intro.php"; </script>
|