SmtpDeliveryMethod SmtpDeliveryMethod SmtpDeliveryMethod SmtpDeliveryMethod Enum

定义

指定如何发送电子邮件。Specifies how email messages are delivered.

public enum class SmtpDeliveryMethod
public enum SmtpDeliveryMethod
type SmtpDeliveryMethod = 
Public Enum SmtpDeliveryMethod
继承
SmtpDeliveryMethodSmtpDeliveryMethodSmtpDeliveryMethodSmtpDeliveryMethod

字段

Network Network Network Network 0

电子邮件通过网络发送到 SMTP 服务器。Email is sent through the network to an SMTP server.

PickupDirectoryFromIis PickupDirectoryFromIis PickupDirectoryFromIis PickupDirectoryFromIis 2

将电子邮件复制到拾取目录,然后通过本地 Internet 信息服务 (IIS) 传送。Email is copied to the pickup directory used by a local Internet Information Services (IIS) for delivery.

SpecifiedPickupDirectory SpecifiedPickupDirectory SpecifiedPickupDirectory SpecifiedPickupDirectory 1

将电子邮件复制到 PickupDirectoryLocation 属性指定的目录,然后由外部应用程序传送。Email is copied to the directory specified by the PickupDirectoryLocation property for delivery by an external application.

注解

使用枚举作为SmtpClient.DeliveryMethod属性的参数来指定传递方法。 SmtpDeliveryMethodUse the SmtpDeliveryMethod enumeration as a parameter to the SmtpClient.DeliveryMethod property to specify the delivery method.

适用于