E
E
Eugene2018-03-30 05:30:15
MODX
Eugene, 2018-03-30 05:30:15

How are emails sent via Formit in MODX Revolution?

Hello!
There is a ready-made site that was not made by me. It is made on MODX Revolution 2.5.7-pl. I have never dealt with MODX at all, but I figured it out quite a bit. Transferred the site to another hosting (reg) and sending emails with form data stopped working (there are suspicions that sending emails did not work even before the transfer). Sending occurs to a specially specified mail in the Applications > Configuration section. As far as I understand this field TV or something like that. There are many forms on the site, about 10 pieces. Today I went in and when I tried to send something, I generally got out that the form data was not correct. In general, it does not send a letter or a form. Although before I climbed, these applications were registered in formit but did not come to the mail. At the moment, I registered a box on the hosting in (ISPManager) and indicated in System Preferences > Section: Mail, smtp settings for sending emails. I doubt that this has affected the fact that I can no longer just submit the form. I hope the point is clear. Letters on mail from forms do not come. Tell me what and where to check. Please help me to solve this issue.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Eugene, 2018-04-10
@Vagrant0610

Understood the problem. It’s even a little ashamed that I didn’t think to look at the logs right away. When I looked into them at "/core/cache/logs/", I saw the following message:

... /core/components/formit/model/formit/fihooks.class.php : 580) [FormIt] Произошла ошибка при попытке отправить почту. Ошибка соединения с SMTP-сервером https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
The problem turned out to be in PHPMailer. This problem is solved by switching the PHP version (in my case from 5.3) to 5.6. After that everything starts working normally. But before that, I removed my changes that I made earlier in the Mail section (in the system settings), made everything by default. Perhaps this information will help someone in the future. Therefore, hello to you from the past ;-)

E
Evgeny Shvelev, 2018-03-30
@mr-mit

There was such a thing, the problem was in the hosting. Create a form on a separate page without any validation and additional parameters and check if it does not work, see the logs in the hosting

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question