SmtpSection.DeliveryMethod Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the Simple Mail Transport Protocol (SMTP) delivery method. The default delivery method is Network.
public:
property System::Net::Mail::SmtpDeliveryMethod DeliveryMethod { System::Net::Mail::SmtpDeliveryMethod get(); void set(System::Net::Mail::SmtpDeliveryMethod value); };
[System.Configuration.ConfigurationProperty("deliveryMethod", DefaultValue=System.Net.Mail.SmtpDeliveryMethod.Network)]
public System.Net.Mail.SmtpDeliveryMethod DeliveryMethod { get; set; }
[<System.Configuration.ConfigurationProperty("deliveryMethod", DefaultValue=System.Net.Mail.SmtpDeliveryMethod.Network)>]
member this.DeliveryMethod : System.Net.Mail.SmtpDeliveryMethod with get, set
Public Property DeliveryMethod As SmtpDeliveryMethod
Property Value
A string that represents the SMTP delivery method.
- Attributes
Remarks
Valid values for this property are Network, PickupDirectoryFromIis, and SpecifiedPickupDirectory. These values have configurable sub-items and have a corresponding section in the System.Net
configuration file. All the sections are camel-cased, to allow the users to match the delivery method with their corresponding section names.
Applies to
See also
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