MapiMessage

MapiMessage()

初始化MapiMessage类.

public MapiMessage()

也可以看看


MapiMessage(OutlookMessageFormat)

初始化MapiMessage类.

public MapiMessage(OutlookMessageFormat format)
范围类型描述
formatOutlookMessageFormat定义是否对此消息使用 Unicode 或 ASCII 编码。

也可以看看


MapiMessage(string, string, string, string, OutlookMessageFormat)

初始化MapiMessage类.

public MapiMessage(string from, string to, string subject, string body, OutlookMessageFormat format)
范围类型描述
fromString发件人地址。
toString收件人的地址。请注意,地址用分号分隔。
subjectString邮件主题。
bodyString消息正文。
formatOutlookMessageFormat定义是否对此消息使用 Unicode 或 ASCII 编码。

例外

例外(健康)状况
ArgumentNullException如果收件人的地址为空或为空,则被抛出。
ArgumentException如果发件人或收件人地址不是可识别的格式,则会被抛出。
InvalidEnumArgumentException如果被抛出format参数不是有效的枚举成员。

也可以看看


MapiMessage(string, string, string, string)

初始化MapiMessage类.

public MapiMessage(string from, string to, string subject, string body)
范围类型描述
fromString发件人地址。
toString收件人的地址。请注意,地址用分号分隔。
subjectString邮件主题。
bodyString消息正文。

例外

例外(健康)状况
ArgumentNullException如果收件人的地址为空或为空,则抛出。
ArgumentException如果发件人或收件人地址不是可识别的格式,则抛出。

也可以看看