sandeepv's avatar

Mail::send() in Lumen says "No Connector for [ ]"

I have create a task to send an email before 24 hours in Lumen , Using SMTP Mail:send(). I have added the command in register function and also in schedule function Kernel.php But when i run the command it says "No Connector for [ ]". But Mail:send is working fine from controller but when i call from a command its not working it says "No Connector for [ ]"

Please help !

0 likes
4 replies
sandeepv's avatar

Hi @tisuchi ,

I have tried all the solutions in this discussion https://github.com/laravel/framework/issues/11051, but no luck...!

But in this discussion, the issue was about Mail::queue but im using Mail::send() , I don’t understand why im getting this error. Mail::send() is working every where in the project but not in Cron job........

sandeepv's avatar

My composer : "require": { "php": ">=5.5.9", "laravel/lumen-framework": "5.1.", "vlucas/phpdotenv": "~2.2", "neomerx/cors-illuminate": "^2.0", "mandrill/mandrill": "1.0." , "nebo15/drunken-russian": ">=1.0.3", "illuminate/mail": "5.1.*", "phpmailer/phpmailer": "~5.2" }, "require-dev": { "fzaninotto/faker": "~1.4", "phpunit/phpunit": "~4.0" },

Please or to participate in this conversation.