文章編號: 186204 - 上次校閱: 2005年4月28日 - 版次: 2.1 如何使用 CDONTS 來收集,以及從使用者的郵件資訊
結論本文包含範例說明如何從使用者處收集資訊.HTM 頁面上,然後使用該資訊傳送郵件給收件者使用 SMTP 透過共同作業資料物件的 Windows NT 伺服器 (CDONTS)。本文包含範例程式碼 HTM 和 ASP 檔案以及如何設定您 Microsoft 管理主控台 (MMC) 預設 SMTP 伺服器的資訊。 其他相關資訊傳送郵件與 NewMail 物件 CDONTS 的語法是,如下所示:
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.
?考共同作業資料物件說明 ; 「 共同作業資料物件的 NTS 元件 」 的搜尋 ; 主題: 「 NewMail 物件 (CDONTS 程式庫)"
機器翻譯重要:本文是以 Microsoft 機器翻譯軟體翻譯而成,而非使用人工翻譯而成。Microsoft 同時提供使用者人工翻譯及機器翻譯兩個版本的文章,讓使用者可以依其使用語言使用知識庫中的所有文章。但是,機器翻譯的文章可能不盡完美。這些文章中也可能出現拼字、語意或文法上的錯誤,就像外國人在使用本國語言時可能發生的錯誤。Microsoft 不為內容的翻譯錯誤或客戶對該內容的使用所產生的任何錯誤或損害負責。Microsoft也同時將不斷地就機器翻譯軟體進行更新。 按一下這裡查看此文章的英文版本:186204?
(http://support.microsoft.com/kb/186204/en-us/
)
Microsoft及(或)其供應商不就任何在本伺服器上發表的文字資料及其相關圖表資訊的恰當性作任何承諾。所有文字資料及其相關圖表均以「現狀」供應,不負任何擔保責任。Microsoft及(或)其供應商謹此聲明,不負任何對與此資訊有關之擔保責任,包括關於適售性、適用於某一特定用途、權利或不侵權的明示或默示擔保責任。Microsoft及(或)其供應商無論如何不對因或與使用本伺服器上資訊或與資訊的實行有關而引起的契約、過失或其他侵權行為之訴訟中的特別的、間接的、衍生性的損害或任何因使用而喪失所導致的之損害、資料或利潤負任何責任。 | 其他資源 其他支援網站社群文章翻譯
|






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email



回此頁最上方