Can not email

ou812

Member
Nov 2, 2016
66
8
8
62
New install Apr 30 2025, I have an fusionpbx server that uses smtp relay through google that is authenticated by ip address, this works very well, I set the same settings in FSpbx and have this servers ip added to my google account but no emails can be sent. I test this by creating a new user and passwords are not sent, if I reset password and select send email I get a red warning tab that says "internal server error".

systemctl status email_queue.service shows active.
 
Did you add email settings to the .env file in the/var/www/fspbx directory?

If so, run this in the console:

Code:
tail -f /var/www/fspbx/storage/logs/laravel.log

Then, try to send an email and post the errors here so we can identify the issue.
 
I did not edit that file, I have made changes but it not working.


MAIL_MAILER=smtp
MAIL_HOST=smtp-relay.gmail.com
MAIL_PORT=25
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS=media@my-domain.ca
MAIL_FROM_NAME=Voicemail
MAIL_REPLY_TO_ADDRESS=null
MAIL_REPLY_TO_NAME=null

tail -f /var/www/fspbx/storage/logs/laravel.log
#61 /var/www/fspbx/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#62 /var/www/fspbx/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle()
#63 /var/www/fspbx/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#64 /var/www/fspbx/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Http\\Middleware\\TrustProxies->handle()
#65 /var/www/fspbx/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#66 /var/www/fspbx/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then()
#67 /var/www/fspbx/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter()
#68 /var/www/fspbx/public/index.php(52): Illuminate\\Foundation\\Http\\Kernel->handle()
#69 {main}
"}
 
This is only lines 61 through 69 of the last error. I need the first few lines. Run the tail command before you attempt to send the email to see full log.

Also make sure that you run


Code:
cd /var/www/fspbx
php artisan app:update

after any changes you make in the .env file. Otherwise, they don't apply.