Visual Basic .NET ?? ??? CDOSYS ?? ??????? SMTP ?????????? ?? ????? ?? ?-??? ??????? ?? ????? ?? ??? ???? ????

???? ?????? ???? ??????
???? ID: 313773 - ?? ???????? ?? ?????? ??? ?? ?? ???? ???? ???? ??.
???????ADO ?? ADO MD ?? ??? ???? ???? ??? ???? ??? ??????? ?? Microsoft .NET Framework ??????? ???? ?? ?????? ????? ??? multithreaded ????????? ?? ????-?????? ????????? ??? ????? ??? ?? ???? ?? ???? ??? ?? ???? ??? discussed ??????? ???? ????? ???? ???? ????? ??? ??????? ????? ?? ??? ??? ADO.NET ???? ?? ??? ????????? ?? ?????? ?? ?? ??????? ?? ????? ???? ??? ???? ?????, ???? ?? ??? ?? ????????? ???? ?? ??? ??? ?????? ???????? ?? ??? ????? ??????? conducted ??? ???? ?? ?????? ?? ???? ?? ????? ?? ADO ?? ADO MD ?? ????? ?? ??? ??? ?? ???????? ??? ???? ??????? ?? ???, Microsoft ???????? ??? ?????????? ???? ?????::
840667??? .NET Framework ????????? ??? ADO ?? ADO MD ?? ????? ???? ??? ????????? ????????? ??????? ????
??? ?? ??????? ???? | ??? ?? ??????? ????

??????

?? ???? ????? ???? ?? ?? Microsoft Visual Basic .NET ?? ????? ?? ???? HTML ?-??? ????? ?? ????? ?? ??? ????? ???? ???????? (CDO) Microsoft Windows 2000 ????????? ?? ??????? SMTP ?????????? ?? ??? ?? ????? ???? ????? ?? ?-??? ????? ????? ?? ??? ?? ??? SMTP ???? ?? ?? ???? ????? ?? ?? ????? ?? ????? ?????? ???

???? ???????

  1. Microsoft Visual Studio .NET ???? ????..
  2. ????? ???????????? ??,????? ????-????? ????, ?? ???? ????????????.
  3. ?? ???????????????? ??????????? ????,Visual Basic ?????????.
  4. ?? ???????????????????? ????,????? ??????????? ????-????? ????, ?? ???? ???OK.

    ???????? ??? ??, Module1.vb ?? ???? ???
  5. Windows 2000 ????????? ?? ??? Microsoft CDO ???? ?? ??? ??? ?????? ??????? ??? ???? ?? ???, ????? ????? ?? ???? ????::
    1. ????? ????????????????? ??,?????? ??????.
    2. ????? ????COM??? ??,Windows 2000 ????????? ?? ??? Microsoft CDO?? ????-????? ????, ?? ???? ?????? ????.
    3. ??????????? ??????????? ????? ???, ????? ????OK???? ??? ?? ??????? ???? ???? ?? ???? ??? ???? ?? ????????? ?? ?? ???? ?????? ????? ???? ?? ??? wrappers ????? ???? ?? ??? ????? ????, ?? ????? ???????.
  6. Microsoft ActiveX ???? ???????? 2.5 ????????? ?? ??? ??? ?????? ?????? ?? ??? 5 c ?? ?????? ?? 5a ?? ????? ?? ???? ?????
  7. ??? ????? ??? ??? ??? ?? ???????????? ????:
    Imports System.Reflection
    
    Module Module1
    
        Sub Main()
            Dim oMsg As CDO.Message = New CDO.Message()
            oMsg.From = "from@microsoft.com"
            oMsg.To = "to@microsoft.com"
            oMsg.Subject = "CdoSys HTML mail in VB.NET (pickup)"
    
            Dim sHtml As String
            sHtml = "<HTML>" & _
             "<HEAD>" & _
             "<TITLE>Simple CDOSYS Message</TITLE>" & _
             "</HEAD>" & _
             "<BODY><P>" & _
             "<h1><Font Color=Green>Simple CDOSYS HTML Message</Font></h1>" & _
             "</BODY>" & _
             "</HTML>"
    
            oMsg.HTMLBody = sHtml
    
            ' Set configuration.
            Dim iConfg As CDO.Configuration = New CDO.Configuration()
    
            Dim oFields As ADODB.Fields
            oFields = iConfg.Fields
    
            Dim oField As ADODB.Field
            oField = oFields("http://schemas.microsoft.com/cdo/configuration/sendusing")
            oField.Value = 1   ' Sets the configuration to use the local SMTP server.
    
            oFields.Update()
            oMsg.Configuration = iConfg
    
            oMsg.Send()
    
            oMsg = Nothing
            iConfg = Nothing
            oFields = Nothing
            oField = Nothing
        End Sub
    
    End Module
    					
  8. ??? ??? "TODO" ?? ??? ??? ????, ?? ?? ???? ?????? ?? ??? ??? ??????? ?????
  9. ????????? ?? ????? ?? ????? ?? ??? F5 ?????..
  10. ???????? ???? ?? ?-??? ????? ?? ??? ???? ?? ??????? ????

???

???? ID: 313773 - ????? ???????: 04 ?????? 2010 - ??????: 2.0
???? ???? ???? ??:
  • Microsoft Visual Basic .NET 2003 Standard Edition
  • Microsoft Visual Basic .NET 2002 Standard Edition
??????: 
kbmsg kbcode kbxml kbhowtomaster kbmt KB313773 KbMthi
???? ?????? ????????
??????????: ?? ???? ?? ???? ??????? ?? ????? ?? Microsoft ????-?????? ?????????? ?????? ?????? ???? ??? ??. Microsoft ???? ??? ????-???????? ?? ????-???????? ????? ?????? ?? ???? ???????? ???? ?? ???? ????? ????? ??? ?? ??? ?????? ?? ???? ???? ???? ??? ????? ??. ???????, ????-???????? ???? ????? ???? ???? ???? ???. ?????, ????????, ?????-???? ?? ??????? ?? ???????? ?? ???? ???, ???? ?? ??? ?????? ???? ???? ??? ????? ??? ?? ???? ??. Microsoft ??????? ??? ???? ?? ?????? ?? ??????????, ????????? ?? ??? ?????? ?? ???? ????? ?? ???? ???????? ?? ??? ???? ????? ?? ??? ????????? ???? ??. Microsoft ????-?????? ?????????? ?? ????? ?????? ?? ?? ??? ??.
?????????? ?? ??????? ????????? ??????? ??:313773

??????????? ???

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com