????? ????? ????? ??????? SMTP ??????? ?? ???????? ????? Visual Basic

?????? ????????? ?????? ?????????
???? ???????: 317680 - ??? ???????? ???? ????? ????? ??? ???????.
?????? ??? ????? Microsoft Visual Basic ?? ??? ???????? ???? 317327.
????? ???? | ?? ????

?? ??? ??????

??????

???? ??? ??????? ???? ????? ????? ??????? SMTP ???? ????? ????? ?????? ????? ??? ????? ?????? ?????????? SMTP ???????.

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

?????? ???? ??? ?? ???? ???????? ???????? ??????? ?? ??? ???? ?? ???? EventSinkScript.vbs.
<SCRIPT LANGUAGE="VBScript">
Sub ISMTPOnArrival_OnArrival(ByVal Msg, EventStatus)
   TextDisclaimer = vbCrLf & "DISCLAIMER:" & vbCrLf & "Sample Disclaimer added in a VBScript."
   HTMLDisclaimer = "<p></p><p>DISCLAIMER:<br>Sample Disclaimer added in a VBScript."

   If Msg.HTMLBody <> "" Then
      'Search for the "</body>" tag and insert our disclaimer before that tag.
      pos = InStr(1, Msg.HTMLBody, "</body>", vbTextCompare)
      szPartI = Left(Msg.HTMLBody, pos - 1)
      szPartII = Right(Msg.HTMLBody, Len(Msg.HTMLBody) - (pos - 1))
      Msg.HTMLBody = szPartI + HTMLDisclaimer + szPartII
   End If

   If Msg.TextBody <> "" Then
      Msg.TextBody = Msg.TextBody & vbCrLf & TextDisclaimer & vbCrLf
   End If
    
   'Commit the content changes to the transport ADO Stream object.
   Msg.DataSource.Save ' Commit the changes into the transport Stream

   EventStatus = cdoRunNextSink
End Sub
</SCRIPT>

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

?????? ???? ????? ?????? ????? Smtpreg.vbs ??????? ?? SDK Exchange. ?????? ?????? ??? ?????? SDK\SDK\Support\CDO\Scripts ...\Exchange ?? ???? ???????? ?? ???? ?? ??? (???? ?? ??? ?????? ??? EventSinkScript.vbs):
cscript smtpreg.vbs / add onarrival 1 SMTPScriptingHost CDO.SS_SMTPOnArrivalSink "?????? from=*@your-domain-here.com"
onarrival /setprop 1 smtpreg.vbs cscript ScriptName ???? SMTPScriptingHost "C:\EventSinkScript.vbs"
?? ??? ???? ????? ????? ????? ???? ???? ?? ??????? ?????? ???????? ?????.

????? ????? ??? ?????, ???? ?? ???:
cscript smtpreg.vbs/????? SMTPScriptingHost OnArrival 1
?????? ??? ???? ?? ????????? ??? ????? ??????? ?? Smtpreg.vbs ???? ??????? "????? ????? ???????" ??? ???? MSDN ?????? ??? ?????:
http://msdn.microsoft.com/en-us/library/ms526620(EXCHG.10).aspx
????? ?? ?????????? ???? ??? ??? ??????? ?????? ?????? ?? "????? ??????? ?? Microsoft:
324021????? ????? ???? ???? ???? "catchall" Exchange Server

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

??????? ???? ????? ????? ????? ???? ???????? ??? ????? SMTP ???? ?????? ??????? ?????? ??. ??? ??? ??????? ???? ????? ????? ?? ????? ????????? ??????? ??? ????? ???????.

?????? ??? ??? ?????? ???? MAPI ??? Microsoft Outlook ????? ?????? ?????????? ? ????? ???? ???? Exchange ??? ?????? ???? ???? ????? ????? ?? ?? ????? ??????? ????? ?? ???????. ????? ??? ??? ?? ??????? ???? ??? ??????? ???????? MAPI ??? ?????? ?? ????? SMTP ????? ???? ?????? ?????????? ????? ??? SMTP. ????? ?? ??? ??????? ????????? ???? ??? ??????? ?????? ??? ?????.

?????

????? ?? ?????????? ???? ??? ??? ??????? ?????? ?????? ?? "????? ??????? ?? Microsoft:
273233?? ????? ????? ????? MAPI trapped ?? ???? ??? ??? SMTP

???????

???? ???????: 317680 - ????? ??? ??????: 13/????/1428 - ??????: 10.4
????? ???
  • Microsoft Exchange Server 2003 Enterprise Edition
  • Microsoft Exchange Server 2003 Standard Edition
  • Microsoft Exchange 2000 Server Standard Edition
  • Collaboration Data Objects for Exchange 2000
  • Microsoft Collaboration Data Objects 2.0
????? ??????: 
kbmt kbhowtomaster KB317680 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????317680

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

 

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