Run artisan manually - testmail

Is it possible to run this manually because not sure the cronjob is working f.e. by surfing to a certain page.
The script TestMailServer.php in app/mail is also not working?

i changed env but have the impression it is not working: statics say
Connection could not be established with host
smtp.site.com :stream_socket_client(): php_network_getaddresses:
getaddrinfo failed: Name or service not known

Hi,

“This error can occur due to two reasons. One, there might me an issue with your DNS settings and second, PHP may not be able to get the network addresses for a given host/domain name.”

From: Failed to connect to server: php_network_getaddresses: getaddrinfo failed [Fix] - Techglimpse

i tried <?php
$ip = gethostbyname(‘www.google.com’);
echo $ip;
?>
and this resolve well,
is rhere a script to empty cach and reload env?

You can run php artisan optimize to reload the .env file and use the health check in the app to check that the values are updated.

i cant do a command, is it possible to use a php script?

You may be able to load /update?secret= in the browser

Do you mean
https://sitewithinvoNinja.com/public/update?secret=
Or anything extra or else?

That’s correct, if there is a secret value set in the .env file you’d need to include it.

not working
it goes back to http://sitewithinvoNinja.com/public/ without https;

@david do you have any thoughts?

get also this:
{“message”:“Web cron has not been configured”}
but crons are set, do 'i need to change something in the env.
It is so stupid we have to change this in files etc. Grr

PHP Fatal error: Declaration of Illuminate\Container\Container::get($id) must be compatible with Psr\Container\ContainerInterface::get(string $id) in /home/sites/3f96ba7d3a/public_html/boekhouding/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 17

and now error, pff

PHP Fatal error: Declaration of Illuminate\Container\Container::get($id) must be compatible with Psr\Container\ContainerInterface::get(string $id) in /home/sites/3f96ba7d3a/public_html/boekhouding/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 17

This is most likely a PHP version issue, which version of PHP are you using? This error would be caused by running PHP 8.1