Pop 3ClientEnable UTF 8 Method
Enable UTF8 mode.
Definition
Namespace: MailKit.Net.Pop3
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
public void EnableUTF8(
CancellationToken cancellationToken = default
)Parameters
- cancellationToken CancellationToken (Optional)
- The cancellation token.
Implements
IPop3ClientEnableUTF8(CancellationToken)Remarks
The POP3 UTF8 extension allows the client to retrieve messages in the UTF-8 encoding and
may also allow the user to authenticate using a UTF-8 encoded username or password.
Exceptions
| ObjectDisposedException | The Pop3Client has been disposed. |
| ServiceNotConnectedException | The Pop3Client is not connected. |
| InvalidOperationException | The Pop3Client has already been authenticated. |
| OperationCanceledException | The operation was canceled via the cancellation token. |
| NotSupportedException | The POP3 server does not support the UTF8 extension. |
| IOException | An I/O error occurred. |
| Pop3CommandException | The POP3 command failed. |
| Pop3ProtocolException | A POP3 protocol error occurred. |