I have a hosting provider that accepts standard mail send (more insecure but simple and effectie), I always used this method but now is not working with a test I am doing.
So I decided to try smtp sending, I match the server specs on blocs and mails are delivered but not arriving.
I remember doing this a while and it worked but not this time. I may think it is a blocs issue? The new spam prevent methods could have any interaction with this?
I am getting this log on both post methods:
Standard
[14-Jul-2026 12:56:42 America/Argentina/Buenos_Aires] PHP Parse error: syntax error, unexpected '?' in /home/nicolasl/public_html/1/includes/form.php on line 11
$name = trim((string)($_POST['name'] ?? ''));
Phpmailer
[14-Jul-2026 12:53:42 America/Argentina/Buenos_Aires] PHP Parse error: syntax error, unexpected '?' in /home/nicolasl/public_html/1/includes/form.php on line 19
$name = trim((string)($_POST['name'] ?? ''));
BlocsApp generates this line in the “form.php” file in the “includes” folder during export.
I mean, “??” isn’t available until PHP 7; maybe an older PHP version is being used.