M
M
Mr_NoMore2017-10-14 01:27:07
Email
Mr_NoMore, 2017-10-14 01:27:07

Unable to send contact form SMTP email?

I use the Contact form 7 plugin. When filling out the form, it is sent to the specified mail. The message tells me that everything went well, the js response returns true. The email does not arrive. I'm trying to configure mail through the SMTP plugin. I specify the data, I try to send a test letter, it returns false to me, at the end there is such a message:

The SMTP debugging output is shown below:

2017-10-13 22:12:55	Connection: opening to smtp.yandex.com:465, timeout=300, options=array (
                   	                  )
2017-10-13 22:13:00	Connection: Failed to connect to server. Error number 2. "Error notice: stream_socket_client(): unable to connect to smtp.yandex.com:465 (Connection refused)
2017-10-13 22:13:00	SMTP ERROR: Failed to connect to server: Connection refused (111)
2017-10-13 22:13:00	SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

I tried using the same contact form, with the same data on another site, everything works there. Could the hosting itself be the problem? The site is hosted by Godaddy. If it's not the problem, what am I doing wrong?
I tried to use SSL, TLS encryption and without encryption, I registered the ports needed for a certain encryption according to the information I found on the Internet.
Also emails are delivered via test email only if I set: Use the PHP mail() function to send emails. But still the contact form itself does not send me anything. That is, I understand correctly that the ports are not open, because when using ports, nothing comes. The mail itself is on Yandex, but with gmail and rambler the story is the same.
Later, on Godaddy himself, he registered MX for Yandex mx.yandex.net. (by the way, godaddy himself removes the dot at the end), but all the same, everything is in vain. I hope for your help.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Axian Ltd., 2017-10-14
@AxianLTD

Letters via Yandex can only be sent to users registered on it, so you need to configure sender redefinition in smtp. For postfix see sasl and map settings. In addition, standard postfix does not understand ssl, for example, stunnel is needed.

Z
zorca, 2017-10-14
@zorca

Most likely GODADDY virtual shared hosting forbids sending emails via SMTP except to its own gateway on this port. Ask in technical support, or even better, switch to vps to flexibly manage all the parameters of your server.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question