Email not working (SMTP)

My emails don’t seem to be being sent. After i updated ENV from Database to QUEUE_CONNECTION=sync then it worked. Any solution to make email work with database?

Hi,

You may need to add the queue:work cron to process the jobs in the queue.

Do you mean this cron
php artisan schedule:run >> /dev/null 2>&1

When i run it manually it didnt send the email either…

Please review the docs linked above, if you enable the queue you need to add the queue:work cron.

I get this error

In Worker.php line 718:

Call to undefined function Illuminate\Queue\pcntl_signal()

Maybe this will help:

https://laracasts.com/discuss/channels/laravel/call-to-undefined-function-illuminatequeuepcntl-signal

Already have it installed so not sure why its an issue. Any other solutions?

@david do you have any suggestions?

@hillel in my php.ini

disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,exec,system,passthru,shell_exec,popen

Anything to do with this?

Seems likely, like the function you need is disabled.

So there so many pcntl do you know which one i should remove from disabled?

I suggest starting with pcntl_signal