<specifiedPickupDirectory> Element (Network Settings)

Configures the local directory for a Simple Mail Transport Protocol (SMTP) server.

<configuration> Element
  <system.net> Element (Network Settings)
    <mailSettings> Element (Network Settings)
      <smtp> Element (Network Settings)
        <specifiedPickupDirectory> Element (Network Settings)

<specifiedPickupDirectory 
  pickupDirectoryLocation="directory"  
/>

Attributes and Elements

The following sections describe attributes, child elements, and parent elements.

Attributes

Attribute

Description

pickupDirectoryLocation

The directory where applications save e-mail for later processing by the SMTP server.

Child Elements

None.

Parent Elements

Element

Description

<smtp>

Configures Simple Mail Transport Protocol (SMTP) mail sending options.

Remarks

The <specifiedPickupDirectory> element sets the directory where applications save mail messages to be processed by the SMTP server.

Example

The following code example specifies c:\maildrop as the mail pickup directory.

<configuration>
  <system.net>
    <mailSettings>
      <smtp deliveryMethod="specifiedPickupDirectory">
        <specifiedPickupDirectory
          pickupDirectoryLocation="c:\maildrop"
        />
      </smtp>
    </mailSettings>
  </system.net>
</configuration>

See Also

Reference

Network Settings Schema

System.Net.Mail.SmtpClient

System.Net.Configuration.SmtpSection

System.Net.Configuration.SmtpSpecifiedPickupDirectoryElement