Search code examples
phplaravelemailmessage-queuelaravel-artisan

Sending retry Mail Queue laravel with other password smtp


I have a problem. I have queue failed email because smtp password is wrong. When I changed to true smtp password then execute ./artisan queue:retry all. And then the result all of email is back to failed queues and still failed.

how to solve this problem ? are queue:failed save my wrong smtp account before?


Solution

  • Yes it will throw the error because those request with bad passwords are already in queue and you need to reset the queue manually.

    If you are using REDIS driver do below

    Redis::connection()->del('queues:myqueue');
    

    or you can manually delete from redis command line tools

    If you are using database driver do the following

    DB::table('jobs')->delete();
    

    for beanstalkd refer below

    https://gist.github.com/lukaswhite/8882024