/home/mjc1/public_html/manage/sendmailpro.php


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
92
93
94
95
96
97
98
<?
header
("Content-type:text/html;charset=euckr");
@
extract($_REQUEST);
  echo
"
    <style>
    BODY,TD,SELECT,input,DIV,form,TEXTAREA,center,option,pre,blockquote {font-size:9pt; font-family:tahoma,verdana,±¼¸²; color:black}
    </style>
    

    <script>
        function back()
            {
            history.go(-1);
            }
    </script>
    
    <center>
    "
;

  if(!
$name)
    {
          echo(
"<br><br><br><br><br><br><b>
              <script>
              document.write('º¸³»´Â »ç¶÷ À̸§À» ÀÔ·ÂÇϼ¼¿ä.');
              </script>
              <form> 
              <input type=button value=' Back ' onclick='back()' style='cursor:hand; background-color:white; border:1 solid black;height:18'>
              </form>
              "
);
        exit;
    

    }
  if(!
$mail
    {
        echo(
"<br><br><br><br><br><br><b>
            <script>
            document.write('º¸³»´Â »ç¶÷ÀÇ ¸ÞÀÏ ÁÖ¼Ò¸¦ ÀÔ·ÂÇϼ¼¿ä.');
            </script>
              <form> 
              <input type=button value=' Back ' onclick='back()' style='cursor:hand; background-color:white; border:1 solid black;height:18'> 
              </form>
              "
);
        exit;
    
    }
  if(!
$mailto
    {
        echo(
"<br><br><br><br><br><br><b>
            <script>
            document.write('¹Þ´Â »ç¶÷ÀÇ ¸ÞÀÏ ÁÖ¼Ò¸¦ ÀÔ·ÂÇϼ¼¿ä.');
            </script>
              <form> 
              <input type=button value=' Back ' onclick='back()' style='cursor:hand; background-color:white; border:1 solid black;height:18'> 
              </form>
              "
);
        exit;
    
    }
  if(!
$subject)
    {
        echo(
"<br><br><br><br><br><br><b>
            <script>
            document.write('Á¦¸ñÀ» ÀÔ·ÂÇϼ¼¿ä.');
            </script>
              <form> 
              <input type=button value=' Back ' onclick='back()' style='cursor:hand; background-color:white; border:1 solid black;height:18'> 
              </form>
              "
);
        exit;
    
    }
  if(!
$memo)
    {
        echo(
"<br><br><br><br><br><br><b>
            <script>
            document.write('º¸³¾ ³»¿ëÀ» ÀÔ·ÂÇϼ¼¿ä.');
            </script>
              <form> 
              <input type=button value=' Back ' onclick='back()' style='cursor:hand; background-color:white; border:1 solid black;height:18'> 
              </form>
              "
);
        exit;
    
    }

  
$header "Return-Path: $mail\n";
  
$header .= "From: $name <$mail>\n";
  
$header .= "Reply-to: $mail\n";
  if(
$html$header .= "Content-Type: text/html;"; else $header .= "Content-Type: text/plain;";
  
$header .= "charset=euc-kr\n";
  if(
$html$memo=nl2br($memo);
  
$memo stripslashes($memo);

    
mail($mailto,$subject,$memo,$header);

?>