Platform SDK: CDO for Windows 2000 |
If an SMTP or NNTP service is installed on the local computer, you can send or post messages using the pickup directory associated with the service. To send messages using the pickup directory, perform the following steps:
These settings are defined for each SMTP and NNTP virtual service instance.
' Reference to Microsoft ActiveX Data Objects 2.5 Library ' Reference to Microsoft CDO for Windows 2000 Library Dim iConf As New CDO.Configuration Dim Flds As ADODB.Fields Set Flds = iConf.Fields ' Set the configuration Flds(cdoSendUsingMethod) = cdoSendUsingPickup Flds(cdoPostUsingMethod) = cdoPostUsingPickup Flds(cdoSMTPServerPickupDirectory) = "C:\InetPub\mailroot\Pickup" Flds(cdoNNTPServerPickupDirectory) = "C:\InetPub\nntpfile\pickup" Flds(cdoFlushBuffersOnWrite) = True Flds(cdoSendEmailAddress) = """User"" <user@microsoft.com>" ' ... other settings Flds.Update Dim iMsg As New CDO.Message Set iMsg.Configuration = iConf ' go on to use Message object
http://schemas.microsoft.com/cdo/configuration/smtpserverpickupdirectory
http://schemas.microsoft.com/cdo/configuration/nntpserverpickupdirectory
http://schemas.microsoft.com/cdo/configuration/flushbuffersonwrite