<specifiedPickupDirectory> Element (Network Settings)
Configures the local directory for a Simple Mail Transport Protocol (SMTP) server.
<configuration>
<system.net>
<mailSettings>
<smtp>
<specifiedPickupDirectory>
Syntax
<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 email for later processing by the SMTP server. |
Child Elements
None.
Parent Elements
Element | Description |
---|---|
<smtp> Element (Network Settings) | Configures Simple Mail Transport Protocol (SMTP) mail sending options. |
Remarks
The specifiedPickupDirectory
attribute sets the directory where applications save mail messages to be processed by the SMTP server.
Example
The following 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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for