More specific: I'm using a centos installation 7, I use php 5.6 and I'm trying to send emails using some joomla components, specifically chrono forms 5, because no error is reported when sending a form from a website , but also the emails do not arrive, I did a test using a simple email code:
<?php
if (@mail("[email protected]", "Probando email en php", "Esto es una prueba a ver si funciona el mail en php")) {
echo('<p>Email enviado.</p>');
} else {
echo('<p>Email NO ENVIADO.</p>');
}
?>
This code does not send any mail, but it does not generate any errors either.
I have read somewhere that from Google Cloud, it is necessary to use a third-party service to send emails, but the truth is that I do not find anything useful or at least understandable in order to make the server send an email.
I have tried on another server (hostgator) with configurations similar to Google Cloud, and it works correctly there.
Please help, this is important, because a site that is not able to send forms to its visitors, is a site that is not 100%.