I have mails that get sent out using a cron on a centos box. The cron calls console/kernal.php where the function get's called to send out the mail
When sending the mail out from within a browser the urls in the mail are correct but when sending with the cron it changes the urls to localhost
I have this in my env file
APP_URL = example.com
And in my config/app.php
I have this
'url' => env('APP_URL', 'example.com'),
I've done everything to book I believe. If I change the the url env var to http://example.com
then the emails get sent out with the right url's but then entire site then get's redireted to http://http//example.com
What is going wrong here. Please help
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire