sc_send_mail

Hello,

I am trying to use sc_send_mail but am having some difficulties. Specifically I am looking to send through a SMTP provider called sparkpost. The settings are to be…

http://prntscr.com/9srq1b

I think the issue is that it uses TLS.

The error is…

stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
stream_socket_client(): Failed to enable crypto
stream_socket_client(): unable to connect to ssl://smtp.sparkpostmail.com:2525 (Unknown error)

Any help is appreciated.

You could try to set the ssl options of the sc_send_mail, but I too have some difficulties with certain mailservers. If anything fails then using another open-source library might be the solution.