¾È³çÇϼ¼¿ä. ÇØÇÇ CGI À¥¸¶½ºÅÍ À±¿µ¿õÀÔ´Ï´Ù.
sendmailÀ» ÀÌ¿ëÇÑ html Çü½ÄÀÇ ¸ÞÀÏ ¹ß¼ÛÀÇ Áú¹®ÀÌ ¸¹¾Æ Áö³×¿ä.
±ò²ûÈ÷ Á¤¸®¸¦ Çغ¸°Ú½À´Ï´Ù. ^^;;;
ÀÏ´Ü ¾Æ·¡´Â ±âº»ÀûÀ¸·Î sendmailÀ» ÀÌ¿ëÇÑ ·çƾÀÔ´Ï´Ù.
sub go_mail {} À̶ó´Â ¼ºê·çƾÀ» ¿¹·Î µé¾î¼ ÇÏ°Ú½À´Ï´Ù.
$send_mail Àº sendmailÀÇ °æ·Î
$shop_email Àº ¼ö½ÅÀÚ À̸ÞÀÏ
$shop_name Àº ¼ö½ÅÀÚ À̸ÞÀÏ
$name Àº º¸³»´Â »ç¶÷À̸§
$email Àº º¸³»´Â »ç¶÷À̸ÞÀÏ
ÀÔ´Ï´Ù.
ÀϹÝÀûÀÎ go_mail ¼ºê·çƾ
open (MAIL, "|$send_mail") || die "Can't open $send_mail!";
print MAIL <<"EOF";
From: $name <$email>
To: $shop_name<$shop_email>
Subject: ÀºÇà°áÁ¦ÁÖ¹®¼ µµÂø
$name ¾¾ÀÇ ÀºÇà°áÁ¦
------------------------------------------------------
ȸ»ç¸í : $company
±¸¸ÅÀÚ¼º¸í : $name
¿ìÆí¹øÈ£ : $zip
¹è´ÞÁöÁÖ¼Ò : $address
ÀüÈ : $phone
ÇÚµåÆù : $hphone
À̸ÞÀÏ : $email
ÀԱݿ¹Á¤ÀÏ : $bank_day
ÀÔ±ÝÀºÇà : $bank_type
³²±ä³»¿ë : $comment
------------------------------------------------------
EOF
close (MAIL);
¾Æ·¡´Â html Çü½ÄÀ¸·Î º¸³»´Â go_mail ¼ºê·çƾ ¿¹Á¦ÀÔ´Ï´Ù.
open (MAIL, "|$send_mail") || die "Can't open $send_mail!";
print MAIL <<"EOF";
MIME-Version: 1.0
Content-Type: text/html; charset=euc-kr
From: $name <$email>
To: $shop_name<$shop_email>
Subject: ÀºÇà°áÁ¦ÁÖ¹®¼ µµÂø
<font color=blue>
$name ¾¾ÀÇ ÀºÇà°áÁ¦
------------------------------------------------------
ȸ»ç¸í : $company
±¸¸ÅÀÚ¼º¸í : $name
¿ìÆí¹øÈ£ : $zip
¹è´ÞÁöÁÖ¼Ò : $address
ÀüÈ : $phone
ÇÚµåÆù : $hphone
À̸ÞÀÏ : $email
ÀԱݿ¹Á¤ÀÏ : $bank_day
ÀÔ±ÝÀºÇà : $bank_type
³²±ä³»¿ë : $comment
------------------------------------------------------
EOF
close (MAIL);
¾Æ·¡ µÎÁÙÀÌ Ãß°¡ µÇ¾úÁÒ?
MIME-Version: 1.0
Content-Type: text/html; charset=euc-kr
ÀÌÀü °íÀç¿õ¾¾°¡ ´äº¯µå¸°
Content-Type: text/html; charset="ISO-8859-1"
µµ µË´Ï´Ù¸¸ ¾Æ¿ô·è¿¡¼´Â ±úÁ® ÀÎÄÚµùÀ» ´Ù½Ã ÇØ¾ß ÇÏ´Â °æ¿ì°¡ ÀÖ½À´Ï´Ù.
°íÀç¿õÆÀÀå´ÔÀº ³×½ºÄÉÀÌÇÁ ½ÅºÀ(^^) À̶ó ³×½ºÄÉÀÌÇÁ¿¡¼´Â ÀߵǴ °É·Î
¾Ë°í ÀÖ±¸¿ä.
¸¹Àº µµ¿ò µÇ¾úÀ¸¸é ÇÕ´Ï´Ù.
°¨»çÇÕ´Ï´Ù.
ÁÁÀº ÇÏ·çµÇ¼¼¿ä. :-)
HappyCGI's SIGN
| °³¹ßÀÚÀÇ ¹Ì´öÀº
°ÔÀ¸¸§(Laziness) ÂüÁö¸»±â(Impatience) ±³¸¸(Hubris) |
|
|