PHP Function StreamSocketEnableCrypto - 30 Examples Found
PHP Function stream_socket_enable_crypto - 30 examples found
These are top rated real world PHP examples of the function stream_socket_enable_crypto extracted from open source projects. You can rate examples to help us improve the quality of examples.
SMTP class is a SMTP plug-in to prepare e-mail headers & attachments and send them over a socket connection (see __construct method for details).
This protected function checks whether an e-mail header value has a valid format (basically it removes forbidden characters). It's used by the functions get, set, exists & clear.
Note: Starting with PHP 5.6, this function will verify certificates on SSL connections (STREAM_CRYPTO_METHOD_TLSv1_0_CLIENT, STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT & STREAM_CRYPTO_METHOD_TLSv2_CLIENT). If the certificate is not valid or misconfigured an error message will be displayed (error code = 1 for example "SSL operation failed with code
This protected function is used to start TLS encryption on the buffer. It's only used if the SMTP server supports it (see the documentation to check). If not supported by the server an error is thrown.