SmtpClient.UseSessionFileInGraphApi Property


Gets or sets whether SmtpClient uses session file to send large email with Graph API protocol.

[Visual Basic]
Public Property UseSessionFileInGraphApi As Boolean
[C#]
public bool UseSessionFileInGraphApi {get; set;}
[C++]
public: __property bool get_UseSessionFileInGraphApi();
public: __property void set_UseSessionFileInGraphApi(bool);
[JScript]
public function get UseSessionFileInGraphApi() : bool;
public function set UseSessionFileInGraphApi(bool);

Property Value

By default, SmtpClient uses session file to upload the message more than 2MB with Graph API protocol. However, Graph API in the U.S. Gov Cloud doesn't support session file, you should set this property to false, and the Gov Cloud supports large message directly.

Remarks

For ActiveX object, please combine 0x4000 with SpecialFlags property.

[VB6]
oSmtp.SpecialFlags = oSmtp.SpecialFlags Or 16384

[C++]
oSmtp->SpecialFlags = oSmtp->SpecialFlags | 16384;