????? ????? "?????? ?????? ???????" NTS ????????? ??? Microsoft ??????? ?????? ?????? ?? Windows 2000

?????? ????????? ?????? ?????????
???? ???????: 810702 - ??? ???????? ???? ????? ????? ??? ???????.
??? ????? ??? ???????. ????? "??? ??" ??? ??? ??????? ??? ????.
????? ???? | ?? ????

?? ??? ??????

??????

???? ??? ??????? ???? ?????? ??? ????? ????? ???????? ??? ???? ???? CDONTS ??? CDOSYS ????????? ???????? ????????.

????? ??????? Cdonts.dll ?? Cdosys.dll ?????? ???????? ??? ????? ?????? ?????? ?????????? ???????? ????????? ???????? ?????? ?????????????. ?????? ?????? ??????? ?? NTS (CDONTS) ?? ????? ????? ???????? ?? Microsoft ???????? ?????? Server (MCIS) ?? ?? ????? ?? Windows NT Option Pack. ????? ?? ????? CDONTS ??? ??? ?? ???? ??????? Windows 2000 ??????? ?? Windows NT. CDONTS ??? ??????? ?? Windows XP ?? ????????? ??????? ?? Windows. ?? ????? Microsoft ??????? ?????? ?????? ?? Windows 2000 (CDOSYS) ? ????? ????? ???? ??????? Windows 2000. ??? ?? ??? ????? ????????? ???????? ???????? ???? ????? ??? CDONTS CDOSYS.

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

????? ?????? ?????? ??? ???? ??????? ???? ???? ?? Cdonts.dll ????????? Cdosys.dll.
?? ??? ??????????? ??? ??????
??????CDONTSCDOSYS?????????
??? Windows NT??????? ??? ??? ??? ??????? ?? ???? ???????
??? Windows 2000???????????? ??????? ?? ???? ???????
??? Windows XP?????CDOSYS ??????? ??? ?? ???? ???????
??? ?????? Exchange??????
????? ????????????
??? ??? ??????? ????????????
????? (???) ???????? ???????? ??? ?????? ?????? (SMTP) ???? ???????? ??? ????? ?????? (NNTP) ?????
??????? ????? MIME ? Uuencode ??????
???? ???? ????? ?? ???? ??? ?? MIME ????? ? ?????? ?????? ? ???????. ?????
??? HTML ? MHTML ??????
????? / ????? ???? ????? ?????? ?????
????? / ????? ???? ?????? ???? POP3 ?????
??? ???? ????? ????? ?????
?? ?????? ??? ???????????

?????

???? ??????? ??????? ????? ????? ???? ??? ???????? CDONTS ????????? CDOSYS. ?? ?? ??????? ??????? ??? ???? ???? ????? ??? ?????? ?? ????? ????? ????????? ???????? ?????? ?????? ?? ?? ?????. ?? ?????? ?? ??? ????? ????????? ???????? ???????? Windows 2000 ?????? ????? ?????? Service Pack 2 (SP2) ?????????? ??????? ?? ????????:
  • CDONTS 6.0.3939.0
  • CDOSYS 6.0.3943.3

????? ?????

??? ?????? ?? ????????? ?????? ?????? ??????? ???. ?? ??? ??????? ??? ?????? ????? ??????? ??? ?????? ???? SMTP ??????. ???? ?????? ??????? ?? ????? ??????? ??????.
?????? CDONTS
 set m =
CreateObject("CDONTS.NewMail") m.Send "user1@company.com", _
"user2@company.com", _ "test 1", _ "hello there" 
?????? CDOSYS
 Set m =
CreateObject("CDO.Message") m.From = "user1@company.com" m.To =
"user2@company.com" m.Subject = "test 1" m.TextBody = "hello there"
m.send

????? ?? HTML

??? ??????? ??????? ???? ??????? HTML ?? ???????. ????? ???? ??? ??????? ??????? "????? ?????". ?? ???? ?????????? ?? ??????? ??? ??????? ????? ??????? multipart/?????? MIME. ?????? ??? ???????? ????? ?? ????? ?? ???? ?? HTML. ?? ????? ?? ???? ??? ????? ???? ?? ????? ??/????.
?????? CDONTS
 sHTML = "<html><body><font
color=""#FF0000"">" & _ "hello,
Red</font></body></html>" Set m =
CreateObject("CDONTS.NewMail") m.MailFormat = 0 ' CdoMailFormatMime
m.BodyFormat = 0 ' CdoBodyFormatHTML m.Send "user1@company.com", _
"user2@company.com", _ "test 1", _ sHTML 
?????? CDOSYS
 sHTML = "<html><body><font
color=""#FF0000"">" & _ "hello,
Red</font></body></html>" Set m = CreateObject("CDO.Message")
m.From = "user1@company.com" m.To = "user2@company.com" m.Subject = "test 1"
m.HtmlBody = sHTML m.send

????? ?? ??? ?????? ?? ????? MIME

?????? CDONTS
Set m = CreateObject("CDONTS.NewMail") m.MailFormat = 0 ' CdoMailFormatMime
m.AttachFile "d:\ptsp\test\test.doc" m.Send "user1@company.com", _
"user2@company.com", _ "test.doc", _ "Here is the document you
requested"
?????? CDOSYS
 Set m
= CreateObject("CDO.Message") m.From = "user1@company.com" m.To =
"user2@company.com" m.Subject = "test.doc" m.TextBody = "Here is the document
you requested." m.AddAttachment "file://d:\ptsp\test\test.doc"
m.send

????? ?? ?????? ?????? Uuencode

??? ??????? ?????? ????? ????? ???? ?? Uuencode ????? ????? ?? ??????? ??? ????? ???????.
?????? CDONTS
 Set m =
CreateObject("CDONTS.NewMail") m.MailFormat = 1 ' CdoMailFormatText
m.AttachFile "d:\ptsp\test\test.doc" m.Send "user1@company.com", _
"user2@company.com", _ "test.doc", _ "Here is the document you requested"
?????? CDOSYS
 Set m =
CreateObject("CDO.Message") m.MimeFormatted = false m.From =
"user1@company.com" m.To = "user2@company.com" m.Subject = "test.doc"
m.TextBody = "Here is the document you requested." m.AddAttachment
"file://d:\ptsp\test\test.doc" m.send

????? ?? ??????? Unicode

????? ??? ?????? ??? Unicode (??? ?????? ? ? ??? Unicode ??? 0x20ac) ?? ??? ????? ??????? ??? ?? ???????. ??? ????? "?" ?? ??? ??????? ?? ??????? ' CharSet utf-7. ??? ?? ?????? CDONTS CP_UTF7 = 65000 ?????. ??????? CDOSYS ? ?? ??? CharSetunicode-1-1-utf-7.
?????? CDONTS
 Set s = CreateObject("CDONTS.Session") S.LogonSMTP "User 1",
"user1@company.com" s.SetLocaleIDs 65000 ' cpUTF7 Set m = s.Outbox.Messages.Add
m.MessageFormat = 0 ' CdoMime set r = m.Recipients.Add 'r.address =
"user2@company.com" r.name = "Joe ?" r.address = "<joe.euro@company.com>"
m.Subject = "Unicode content" m.Text = "That will be ?5, please."
m.Send
?????? CDOSYS
set m =
CreateObject("CDO.Message") m.From = "User1 <user1@company.com>" m.To =
"Joe ? <joe.euro@company.com>" m.Subject = "Unicode content" set b =
m.bodypart b.charset = "unicode-1-1-utf-7" m.textbody = "That will be ?5,
please." m.send

?????

????? ?? ?????????? ?? ?????? ????? ??? MSDN ??????: ????? ?? ?????????? ???? ??? ??? ??????? ?????? ?????? ?? "????? ??????? ?? Microsoft:
816789????? ?????? Everyone ??? ????? ???????? ??? ????? ???? ?????? Service Pack 3 ?????? ?? Exchange 2000

???????

???? ???????: 810702 - ????? ??? ??????: 27/???? ??????/1435 - ??????: 6.5
????? ???
  • Microsoft Exchange Server 2003 Enterprise Edition
  • Microsoft Exchange Server 2003 Standard Edition
  • Microsoft Exchange 2000 Server Standard Edition
  • Microsoft Collaboration Data Objects 2.0 ?? NT Server
  • Microsoft Collaboration Data Objects 2.0
????? ??????: 
kbnosurvey kbarchive kbmt kbhowtomaster kbhowto KB810702 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????810702

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

 

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