³×ÀÓ¼¹ö Á¤º¸
1Â÷ ns.gnameserver.net
211.239.124.250
2Â÷ ns2.gnameserver.net
211.239.124.251
ÀÔ±Ý °èÁ Á¤º¸
ÀºÇà: ¿ì¸®ÀºÇà
°èÁÂ: 810-184634-02-001
¿¹±ÝÁÖ: ÀüÀç¿ì
¼±³³°¡´É(°³¿ù¼ö °ü°è¾øÀ½)
(³³ºÎÀÚ¸í¿¡ ȸ¿ø ID·Î ÀÔ±Ý ÈÄ ³³ºÎ³»¿ªµî·Ï,ÀÏ´ëÀÏ °Ô½ÃÆÇ¿¡ ¾Ë·ÁÁÖ¼¼¿ä.)
(guideline QR code)
Á¦¸ñ :
PHP ¿¡¼ ¿ÜºÎ smtp ¼¹ö ÀÌ¿ëÇϱâ
±Û ¹øÈ£
±ÛÀÚ Å©±â :
ÇÏ·ç 50Åë ÀÌ»óÀÇ ¸ÞÀÏÀ» ¹ß¼ÛÇÏ½Ç °æ¿ì ¿ÜºÎÀÇ smtp ¼¹ö¸¦
ÀÌ¿ëÇÒ °æ¿ì°¡ »ý±é´Ï´Ù. Java ÀÇ °æ¿ì´Â ÀÚ¹Ù¸ÞÀÏ API ¸¦
ÀÌ¿ëÇÏ½Ã¸é µË´Ï´Ù¸¸, PHP ÀÇ °æ¿ì´Â Linux ¹öÀü¿¡¼´Â µû·Î
¶óÀ̺귯¸®¸¦ ÀÌ¿ëÇÏ¼Å¾ß ÇÕ´Ï´Ù.
´ÙÀ½Àº smtp class ¶óÀ̺귯¸®ÀÇ ¿¹Á¦ÀÔ´Ï´Ù.
´Ù¿î¹ÞÀ¸½Ç ÁÖ¼Ò´Â http://www.phpclasses.org/browse.html/package/14.html ÀÔ´Ï´Ù.
¾Æ·¡´Â ÀúÈñ°¡ ÀÛ¼ºÇÑ ¿¹Á¦ÀÔ´Ï´Ù.
smtp_host_name ¿¡´Â »ç¿ëÇÏ½Ç ¿ÜºÎ smtp ¼¹öÀÇ È£½ºÆ®¸íÀ» ÀÔ·ÂÇϽøé
µË´Ï´Ù. ÀÚ½ÅÀÇ PC ¸¦ smtp ¼¹ö·Î »ç¿ëÇϽǷÁ¸é ÀÚ½ÅÀÇ PC ÀÇ IP ¸¦
ÀÔ·ÂÇÏ½Ã¸é µË´Ï´Ù.
<?php
if ($flag == "") {
?>
<html>
<title>Smtpclass Example</title>
<body>
<form method=post action="smtpclass.php">
<input type=hidden name=flag value="ok">
<table border=0 width=500>
<tr>
<td>smtp ¼¹ö ÁÖ¼Ò</td>
<td><input type=text name=smtp_host_name size=30></td>
</tr>
<tr>
<td>From:</td>
<td><input type=text name=smtp_from size=30></td>
</tr>
<tr>
<td>To:</td>
<td><input type=text name=smtp_to size=30></td>
</tr>
<tr>
<td>Subject:</td>
<td><input type=text name=smtp_subject size=80></td>
</tr>
<tr>
<td>Body:</td>
<td><textarea name=body cols=80 rows=10></textarea></td>
</tr>
<tr>
<td colspan=2 align=center><input type=submit value="Send"></td>
</tr>
</table>
</fotm>
</body>
</html>
<?php
}
else if ($flag == "ok") {
require("smtp.php");
$smtp = new smtp_class;
if(!function_exists("GetMXRR")) {
$_NAMESERVERS=array();
include("getmxrr.php");
}
$smtp->host_name = $smtp_host_name;
$smtp->localhost = "localhost";
$smtp->direct_delivery=0; /* Set to 1 to deliver directly to the recepient SMTP server */
$smtp->debug=0; /* Set to 1 to output the communication with the SMTP server */
$smtp->user=""; /* Set to the user name if the server requires authetication */
$smtp->realm=""; /* Set to the authetication realm, usually the authentication user e-mail domain */
$smtp->password=""; /* Set to the authetication password */
$body = $body;
$from = $smtp_from;
$bodytext = stripslashes($body);
$subject = $smtp_subject;
$to = $smtp_to;
if ($smtp->SendMessage($from, array($to),
array(
"From: $from",
"To: $to",
"Subject: $subject",
"Date: ".strftime("%a, %d %b %Y %H:%M:%S %Z")
),
"$bodytext"))
echo "$to Mail Send Success!n";
else {
echo "$to Mail Send Failed!!nError: ".$smtp->error."n";
}
}
?>
µî·ÏÀÏ
2003-03-31
Á¶È¸¼ö
26565
¸®½ºÆ® ¼ö 5 10 15 20 30 50 100 150
1 2 3 4 5 6 7 8
°¡À̵å¶óÀÎ , »ç¾÷ÀÚµî·Ï¹øÈ£ 109-03-42915, ´ëÇ¥ÀÚ ÀüÀç¿ì
TEL) 070-4155-6478
Åë½ÅÆǸŹøÈ£ 2022-¼¿ï¼ººÏ-0661