An example of setting up sending emails through the site’s feedback forms through hosting mail servers reg. ruE-Mail site administrator (default sender) info@nevolko
Instruction «Setting up mail on hosting reg.ru»
Roundcube Webmail Email Client!
Support team answered
Apparently, the problem lies in the work of scripts on your site.
To check, we created a test script, the SMTP settings were specified similarly to the settings in your file
The letter was sent to a new test box, no errors occurred. The message was successfully delivered.
Probably, the site scripts do not call the function of sending a letter, so the message is not sent.
Although before that yandex mail was configured and it worked
sent this code
Important: during the free trial period of hosting, you can only send 10 emails per day. Otherwise, sending mail will be blocked.
In some cases, mail is blocked due to site infection. To restore the site, use the instructions: What to do if the site is infected?
If you received a notification about the presence of malware on your hosting and you have blocked sending mail, follow these steps to unblock it:
Check your site for viruses and remove the found malware according to the instructions: How to check the site for viruses?
If an anti-virus check shows an infection in installed CMS plugins/themes/templates, update the CMS you are using to the latest stable version, as well as all connected extensions and plugins. We recommend using only official CMS extensions.
At this step, you can also restore the site from a backup: Backups The maximum storage period for backups is 30 days.
Log in to the REG.RU website and go to the list of services.
Click on the name of the hosting service. In the information block, click the button What is this and how to unlock:
Attention: unlocking is available once every 48 hours.
Done. Refresh the browser page.
To disable mail blocking, remove the following line from the php.ini file: disable_functions= mail. To do this, use the instruction: How to change PHP settings?
Important: information about mail blocking in the REG.RU Personal Account is updated once a day. Immediately after deleting disable_functions= mail , the notification will not disappear, but the functionality of the mail will be restored.
When blocking mail on the VPS server, contact the technical support of the hosting.
Unblock mail via mail file. log
You can also troubleshoot the problem using the mail.log file. This file logs messages sent by PHP scripts. Most often, spam emails are sent by PHP scripts through the php-mail function. To remove the lock, open the mail.log file in the control panel.
The mail.log file is located:
Check the list of scripts and remove spam scripts. Important: do not delete the mail.log file itself from the control panel, this file is a log and stores information about sending letters by scripts using phpmail.
If the mail.log file does not exist, you can configure message logging yourself by following the instructions: How to enable phpmail message logging?
If you encounter a Sender rate overlimit error, follow our recommendations in the article: Sender rate overlimit error.
Telephone in Moscow
Free call within Russia
Select and press Ctrl+Enter
On shared hosting
To activate the log, insert the following lines into the php.ini file:
The path to the hosting directory looks like:
Done! You have enabled message logging.
VPS
in the site folder, create a file info.php and write the following lines into it:
go to your_site/info.php
you can add mail logging only for a specific site or for all sites on the server.
To log messages, add the following code to the end of the php.ini file.

