Select the product you need help with
How to Utilizzare CDONTS per raccogliere e inviare tramite posta elettronica informazioni da un utenteIdentificativo articolo: 186204 - Visualizza i prodotti a cui si riferisce l?articolo. Questo articolo è stato precedentemente pubblicato con il codice di riferimento I186204 Sommario
In questo articolo viene fornito un esempio che descrive come raccogliere informazioni da un utente in una pagina HTM, quindi utilizzare tali informazioni per inviare un messaggio di posta elettronica a un destinatario con Collaboration Data Objects per Windows NT Server (CDONTS) tramite SMTP. L'articolo include codice di esempio per i file HTM e ASP, oltre a informazioni su come configurare il server SMTP predefinito di Microsoft Management Console (MMC).
Informazioni
Di seguito è riportata la sintassi per l'invio di un messaggio di posta con l'oggetto NewMail di 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.
Riferimenti
Guida in linea di Collaboration Data Objects; cercare nella sezione "Collaboraton Data Objects for NTS Component"; argomento: "NewMail Object (CDONTS Library)"
ProprietàIdentificativo articolo: 186204 - Ultima modifica: venerdì 20 gennaio 2006 - Revisione: 2.0 Le informazioni in questo articolo si applicano a:
LE INFORMAZIONI CONTENUTE NELLA MICROSOFT KNOWLEDGE BASE SONO FORNITE SENZA GARANZIA DI ALCUN TIPO, IMPLICITA OD ESPLICITA, COMPRESA QUELLA RIGUARDO ALLA COMMERCIALIZZAZIONE E/O COMPATIBILITA' IN IMPIEGHI PARTICOLARI. L'UTENTE SI ASSUME L'INTERA RESPONSABILITA' PER L'UTILIZZO DI QUESTE INFORMAZIONI. IN NESSUN CASO MICROSOFT CORPORATION E I SUOI FORNITORI SI RENDONO RESPONSABILI PER DANNI DIRETTI, INDIRETTI O ACCIDENTALI CHE POSSANO PROVOCARE PERDITA DI DENARO O DI DATI, ANCHE SE MICROSOFT O I SUOI FORNITORI FOSSERO STATI AVVISATI. IL DOCUMENTO PUO' ESSERE COPIATO E DISTRIBUITO ALLE SEGUENTI CONDIZIONI: 1) IL TESTO DEVE ESSERE COPIATO INTEGRALMENTE E TUTTE LE PAGINE DEVONO ESSERE INCLUSE. 2) I PROGRAMMI SE PRESENTI, DEVONO ESSERE COPIATI SENZA MODIFICHE, 3) IL DOCUMENTO DEVE ESSERE DISTRIBUITO INTERAMENTE IN OGNI SUA PARTE. 4) IL DOCUMENTO NON PUO' ESSERE DISTRIBUITO A SCOPO DI LUCRO. | Traduzione articoli
|



Torna all'inizio








