A
A
Anton Seredny2016-02-16 22:30:40
PHP
Anton Seredny, 2016-02-16 22:30:40

How to correctly send mail to php via smtp?

Good afternoon. There are about 10 client sites where you need to set up sending mail from forms.
Alas, the usual mail () by mail servers either blocks at all on approach, or immediately brings down spam. It is necessary to send via smtp, but I did not find a working example on the network. Use this one and this one .
So far it doesn't work. How to do everything right? Yandex or Jmail - don't care, as long as it works and the applications go correctly.
UPDATED
There is another bug, like this:

Unable to find the socket transport "SSL" - did you forget to enable it when you configured PHP?

It is clear that you need to enable open_ssl, but it is not in php.ini, and if I add extension=php_openssl.so, the error remains exactly... How to be?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xmoonlight, 2016-02-16
@smidl

https://habrahabr.ru/post/114852/
you need to configure openssl for PHP: php.net/manual/ru/openssl.installation.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question