SmtpClient.DeliveryMethod Property

Specifies how outgoing email messages will be handled.

Namespace: System.Net.Mail
Assembly: System (in system.dll)

public SmtpDeliveryMethod DeliveryMethod { get; set; }
/** @property */
public SmtpDeliveryMethod get_DeliveryMethod ()

/** @property */
public void set_DeliveryMethod (SmtpDeliveryMethod value)

public function get DeliveryMethod () : SmtpDeliveryMethod

public function set DeliveryMethod (value : SmtpDeliveryMethod)

Not applicable.

Property Value

An SmtpDeliveryMethod that indicates how email messages are delivered.

Delivery methods include:

  • An SMTP server.

  • Moving the email into the pickup directory for IIS, which then delivers the message.

  • Moving the email to a directory specified by PickupDirectoryLocation for later delivery by another application.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions