Answer the question
In order to leave comments, you need to log in
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?
Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question