¸ÞÀÏÀ» »ç¿ëÇÏ¿© ¼öÁýÇÏ´Â ¹æ¹ý ¹× »ç¿ëÀÚÀÇ ¸ÞÀÏ Á¤º¸¸¦

±â¼ú ÀÚ·á: 186204 - ÀÌ ¹®¼­°¡ Àû¿ëµÇ´Â Á¦Ç° º¸±â.
¸ðµÎ È®´ë | ¸ðµÎ Ãà¼Ò

¿ä¾à

ÀÌ ¹®¼­¿¡¼­´Â .HTM ÆäÀÌÁö¿¡¼­ »ç¿ëÀڷκÎÅÍ Á¤º¸¸¦ ¼öÁýÇÏ°í ´ÙÀ½ ÇØ´ç Á¤º¸¸¦ »ç¿ëÇÏ¿© SMTP¸¦ ÅëÇØ °øµ¿ ÀÛ¾÷ µ¥ÀÌÅÍ °³Ã¼¿¡ ´ëÇÑ Windows NT ¼­¹ö (¸ÞÀÏÀ») »ç¿ëÇÏ¿© ¹Þ´Â »ç¶÷¿¡°Ô ¸ÞÀÏÀ» º¸³¾ ¹æ¹ýÀ» ¼³¸íÇÏ´Â ¿¹Á¦¸¦ Á¦°øÇÕ´Ï´Ù. ÀÌ ¹®¼­¿¡¼­´Â Microsoft °ü¸® ÄܼÖ(MMC) ±âº» SMTP ¼­¹ö°¡ ±¸¼ºÇÏ´Â ¹æ¹ýÀÇ Á¤º¸¸¦ ºñ·ÔÇÏ¿© HTM ¹× ASP ÆÄÀÏ¿¡ ´ëÇÑ »ùÇà Äڵ尡 Æ÷ÇԵǾî ÀÖ½À´Ï´Ù.

Ãß°¡ Á¤º¸

CDONTS¿¡ NewMail °³Ã¼ »ç¿ëÇÏ¿© ¸ÞÀÏÀ» º¸³»±â À§ÇÑ ±¸¹®Àº ´ÙÀ½°ú °°½À´Ï´Ù:
   objNewMail.Send([From][, To][, Subject][, Body][, Importance] )

   objNewMail
      Required. This NewMail object.

   From
      Optional. String. The full messaging address to be identified as
      the sender (for example, someone@Microsoft.com)

   To
     Optional. String. A list of full messaging addresses of recipients.
     The individual recipient addresses are separated by semicolons.
     (for example, someone@Microsoft.com)

   Subject
      Optional. String. The subject line for the message.

   Body
      Optional. IStream object or String. The text of the message. Only
      C/C++ and Java programs can use an IStream object for the Body
      parameter. They should pass an IUnknown object that returns an
      IStream interface in response to QueryInterface. Microsoft Visual
      Basic supports the IDispatch interface and not IUnknown, so it
      cannot use an IStream object.

   Importance
      Optional. Long. The importance associated with the message, High,
      Normal or Low.  This article sets the required value depending upon
      which option button the user selects.

				
  1. ´ÙÀ½ HTML Äڵ带 CDONTSMail.HTM ¶ó´Â ÆÄÀÏ¿¡ ºÙ¿© ³ÖÀ»:
          <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
          <html>
    
          <head>
          <meta http-equiv="Content-Type"
          content="text/html; charset=iso-8859-1">
          <meta name="GENERATOR"
          content="Microsoft FrontPage (Visual InterDev Edition) 2.0">
          <title>CDONTSMail</title>
          </head>
    
          <body bgcolor="#FFFFFF">
    
          <form action="CDONTSMail.asp" method="POST">
          <table border="0">
             <tr>
                <td>From:</td>
                <td><!--webbot bot="Validation"
                   b-value-required="TRUE" --><input type="text"
                   size="47" name="txtFrom"
                   value="Your internet address (Me@MyCompany.com)"></td>
             </tr>
             <tr>
                <td>To:</td>
                <td><!--webbot bot="Validation"
                   b-value-required="TRUE" --><input type="text"
                   size="47" name="txtTo"
                   value="The recipient's address (You@YourCompany.com)"></td>
             </tr>
             <tr>
                <td>Subject:</td>
                <td><input type="text" size="47" name="txtSubject"
                   value="Enter a subject here"></td>
             </tr>
             <tr>
                <td valign="top">Message:</td>
                <td><textarea name="txtMessage" rows="9" cols="45">
                   Type your message here.</textarea></td>
             </tr>
             <tr>
                <td valign="top">Importance:</td>
                <td><input type="radio" name="optImportance"
                   value="2">High<br>
                   <input type="radio" checked name="optImportance"
                   value="1">Normal<br>
                   <input type="radio" name="optImportance" value="0">Low<br>
                </td>
             </tr>
          </table>
          <p><input type="submit" name="cmdSubmit" value="Submit">
          <input type="reset" name="cmdClear" value="Clear"> </p>
          </form>
          </body>
          </html>
    						
  2. ´ÙÀ½°ú °°Àº VBScript Äڵ带 CDONTSMail.ASP ÆÄÀÏ·Î ºÙ¿©:
          <%@ LANGUAGE="VBSCRIPT" %>
          <HTML>
          <HEAD>
          <META NAME="GENERATOR" Content="Microsoft Visual InterDev 1.0">
          <META HTTP-EQUIV="Content-Type"
           content="text/html;charset=iso-8859-1">
          <TITLE>CDONTSMail</TITLE>
    
          <%
          Sub Write(strWriteThis)
             'This subroutine just writes out whatever is
             'passed to it.
             response.write(strWriteThis & "<br>")
          end sub
    
          %>
          </HEAD>
          <BODY>
    
          <%
             Dim myCDONTSMail
             Dim strFrom
             Dim strTo
             Dim strSubject
             Dim strMessage
             Dim lngImportance
    
             'The following variable assignments are not required
             'they are just here to make interpretation of the
             'myCDONTSMail.Send line easier.  You could put the
             'Request.Form statements in the .Send line to cut down
             'on the amount of code in the file.
             strFrom=request.form("txtFrom")
             strTo=request.form("txtTo")
             strSubject = request.form("txtSubject")
             strBody=request.form("txtMessage")
             lngImportance = request.form("optImportance")
    
             'The following four lines of code are just here for test
             'purposes to see what variables have been pulled in from the
             'HTM form.
             Write("strFrom = " & strFrom)
             Write("strTo = " & strTo)
             Write("strSubject = " & strSubject)
             Write("strMessage = " & strBody)
             Write("Importance = " & lngImportance)
    
             Set myCDONTSMail = CreateObject("CDONTS.NewMail")
    
             myCDONTSMail.Send strFrom,strTo,strSubject,strBody,lngImportance
    
             Set myCDONTSMail  = Nothing
             Write "Mail has been sent."
             %>
          </BODY>
          </HTML>
    						
    Âü°í: NewMail °³Ã¼ÀÇ Send ¸Þ¼­µå ¼º°øÀûÀ¸·Î ¿Ï·áÇÑ °æ¿ì À߸øµÈ µÇ°í ´Ù¸¥ ¸Þ½ÃÁö¸¦ ´Ù½Ã »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù. Nothing À¸·Î ¸Þ¸ð¸®¸¦ ÇØÁ¦ÇÏ·Á¸é ÇØ´ç ¼³Á¤À» ÇÕ´Ï´Ù. CdoE_INVALID_OBJECT ¹Ýȯ º¸³½µÈ NewMail °³Ã¼ °á°úÀÇ ¾×¼¼½º¸¦ ½ÃµµÇß½À´Ï´Ù.
  3. ÀÎÅÍ³Ý Á¤º¸ ¼­ºñ½º (IIS) ±¸¼º ´Ü°è. IIS ¼­¹ö¿¡¼­ ´Ù¸¥ ÄÄÇ»ÅͰ¡ ÀÖ´Ù°í °¡Á¤ÇÒ °æ¿ì SMTP ¼­¹ö¸¦ ÅëÇØ ¸ÞÀÏÀ» º¸³»±â À§ÇØ ´ÙÀ½ ´Ü°è¸¦ ¼öÇàÇϽʽÿÀ.

    1. IIS ÄÄÇ»ÅÍ¿¡ Microsoft °ü¸® ÄܼÖ(MMC) ¿±´Ï´Ù.
    2. ¿ÞÂÊµÈ Ã¢¿¡¼­ "ÀÎÅÍ³Ý Á¤º¸ ¼­ºñ½º"¸¦ ±¸¿ª.
    3. ¿ÞÂÊ Ã¢¿¡¼­ ¼±ÅÃÇÑ ´ÙÀ½ IIS ¼­¹ö¸¦ È®ÀåÇϽʽÿÀ.
    4. ¿À¸¥ÂÊ Ã¢¿¡¼­ "±âº» SMTP ¼­¹ö°¡" ¸¶¿ì½º ¿À¸¥ÂÊ ´ÜÃ߷ΠŬ¸¯Çϰí "¼Ó¼º" ¼±ÅÃÇϽʽÿÀ
    5. "¹è´Þ" ÅÇÀ» ¼±ÅÃÇϽʽÿÀ.
    6. IIS "¿ÏÀüÈ÷: Á¤±ÔÈ­µÈ µµ¸ÞÀÎ À̸§" ÅØ½ºÆ® »óÀÚ¿¡ ÀÔ·ÂÇÑ ÄÄÇ»ÅÍ À̸§.
    7. ½º¸¶Æ® È£½ºÆ® ÀԷ¶õ¿¡ SMTP ¼­¹öÀÇ À̸§À» ÀÔ·ÂÇϽʽÿÀ.
  4. CDONTSMail.htm ÆÄÀÏÀ» ºê¶ó¿ìÀú¿¡¼­ ½ÇÇàÇÒ ÇÊ¿äÇÑ Á¤º¸¸¦ ÀÔ·ÂÇϰí Àü¼Û ´ÜÃ߸¦ ¼±ÅÃÇϽʽÿÀ.

    Âü°í: À§ÀÇ ÄÚµå´Â ½ÃÀÛ ¿¡¼­ ¹× Çʵ忡 °ªÀ» ÀÔ·ÂÇØ¾ß ÇÕ´Ï´Ù.

ÂüÁ¶

°øµ¿ ÀÛ¾÷ µ¥ÀÌÅÍ °³Ã¼ µµ¿ò¸», "°øµ¿ ÀÛ¾÷ µ¥ÀÌÅÍ °³Ã¼¿¡ ´ëÇÑ NTS ±¸¼º" ¿¡¼­ °Ë»ö, Ç׸ñ: "NewMail °³Ã¼ (CDONTS ¶óÀ̺귯¸®)"

¼Ó¼º

±â¼ú ÀÚ·á: 186204 - ¸¶Áö¸· °ËÅä: 2005³â 4¿ù 28ÀÏ ¸ñ¿äÀÏ - ¼öÁ¤: 2.1
º» ¹®¼­ÀÇ Á¤º¸´Â ´ÙÀ½ÀÇ Á¦Ç°¿¡ Àû¿ëµË´Ï´Ù.
  • Microsoft Collaboration Data Objects 1.2 for NT Server
Ű¿öµå:?
kbmt kbhowto kbhtml kbmsg KB186204 KbMtko
±â°è ¹ø¿ªµÈ ¹®¼­
Áß¿ä: º» ¹®¼­´Â Àü¹® ¹ø¿ª°¡°¡ ¹ø¿ªÇÑ °ÍÀÌ ¾Æ´Ï¶ó Microsoft ±â°è ¹ø¿ª ¼ÒÇÁÆ®¿þ¾î·Î ¹ø¿ªÇÑ °ÍÀÔ´Ï´Ù. Microsoft´Â ¹ø¿ª°¡°¡ ¹ø¿ªÇÑ ¹®¼­ ¹× ±â°è ¹ø¿ªµÈ ¹®¼­¸¦ ¸ðµÎ Á¦°øÇϹǷΠMicrosoft ±â¼ú ÀÚ·á¿¡ ÀÖ´Â ¸ðµç ¹®¼­¸¦ Çѱ۷ΠÁ¢ÇÒ ¼ö ÀÖ½À´Ï´Ù. ±×·¯³ª ±â°è ¹ø¿ª ¹®¼­°¡ Ç×»ó ¿Ïº®ÇÑ °ÍÀº ¾Æ´Õ´Ï´Ù. µû¶ó¼­ ±â°è ¹ø¿ª ¹®¼­¿¡´Â ¸¶Ä¡ ¿Ü±¹ÀÎÀÌ Çѱ¹¾î·Î ¸»ÇÒ ¶§ ½Ç¼ö¸¦ ÇÏ´Â °Íó·³ ¾îÈÖ, ±¸¹® ¶Ç´Â ¹®¹ý¿¡ ¿À·ù°¡ ÀÖÀ» ¼ö ÀÖ½À´Ï´Ù. Microsoft´Â ³»¿ë»óÀÇ ¿À¿ª ¶Ç´Â Microsoft °í°´ÀÌ ÀÌ·¯ÇÑ ¿À¿ªÀ» »ç¿ëÇÔÀ¸·Î½á ¹ß»ýÇÏ´Â ºÎ Á¤È®¼º, ¿À·ù ¶Ç´Â ¼ÕÇØ¿¡ ´ëÇØ Ã¥ÀÓÀ» ÁöÁö ¾Ê½À´Ï´Ù. Microsoft´Â ÀÌ·¯ÇÑ ¹®Á¦¸¦ ÇØ°áÇϱâ À§ÇØ ±â°è ¹ø¿ª ¼ÒÇÁÆ®¿þ¾î¸¦ ÀÚÁÖ ¾÷µ¥ÀÌÆ®Çϰí ÀÖ½À´Ï´Ù.
´õ ÀÌ»ó Áö¿øµÇÁö ¾Ê´Â Á¦Ç°ÀÇ KB ³»¿ë¿¡ ´ëÇÑ °íÁö »çÇ×
ÀÌ ¹®¼­¿¡¼­´Â Microsoft¿¡¼­ ´õ ÀÌ»ó Áö¿øÇÏÁö ¾Ê´Â Á¦Ç°¿¡ ´ëÇØ ¼³¸íÇÕ´Ï´Ù. µû¶ó¼­ ÀÌ ¹®¼­´Â "ÀÖ´Â ±×´ë·Î" Á¦°øµÇ¸ç ¾÷µ¥ÀÌÆ®µÇÁö ¾Ê½À´Ï´Ù.

Çǵå¹é º¸³»±â