Specifies the options that the InternetMail class supports.
This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.
The InternetMail class uses the InternetMailOptions enumeration to specify one or more options to be used when establishing a connection with a remote host. Multiple options may be specified if necessary.
| Member Name | Description | Value |
|---|---|---|
| optionNone | No option specified. | 0 |
| optionAuthLogin | This option specifies that the client should attempt to authenticate with the mail server when submitting messages for delivery. This option is typically required when relaying messages through a server to a recipient in a different domain. | 1 |
| optionAllHeaders | Preserves all headers in the message when it is exported, including the Received and Return-Path headers which are normally excluded. | 256 |
| optionKeepOrder | Preserves the order of the headers when it is exported; by default, some headers may be re-ordered. | 512 |
| optionSecure | This option specifies that the client should attempt to establish a secure connection with the server. Note that the server must support secure connections using either the SSL or TLS protocol. | 4096 |
| optionImplicitSSL | This option specifies that the client should attempt to establish a secure implicit SSL session. The SSL handshake is initiated immediately after the connection to the server has been established. | 4096 |
| optionExplicitSSL | This option specifies that the client should attempt to establish a secure explicit SSL session. The initial connection to the server is not encrypted, and the client will attempt to negotiate a secure connection by sending a command to the server. Some servers may require this option connecting to the server on ports other than the default secure port. | 8192 |
| optionFreeThread | This option specifies that class methods may be called from any thread, and not only the thread that established the connection. Using this option disables certain internal safety checks that are made by the class and may result in unexpected behavior unless you ensure that access to the class instance is synchronized across multiple threads. | 32768 |
| optionNotify | Notify the sender of the delivery status of the message, if the server supports delivery status notification. This option is a combination of the optionNotifySuccess, optionNotifyFailure, optionNotifyDelay and optionReturnHeaders options. | 983040 |
| optionNotifySuccess | If the mail server supports delivery status notification, this causes a message to be returned to the sender once it has been successfully delivered. | 65536 |
| optionNotifyFailure | If the mail server supports delivery status notification, this causes a message to be returned to the sender if it could not be delivered. | 131072 |
| optionNotifyDelay | If the mail server supports delivery status notification, this causes a message to be returned to the sender if delivery has been delayed. | 262144 |
| optionReturnHeaders | If the mail server supports delivery status notification, this causes a message to be returned which contains the headers of the message that was sent. | 524288 |
| optionReturnMessage | If the mail server supports delivery status notification, this causes a message to be returned which contains the complete message that was sent. | 1048576 |
Namespace: SocketTools
Assembly: SocketTools.InternetMail (in SocketTools.InternetMail.dll)