How to send spool from swiftmailer without using command?
php app/console swiftmailer:spool:send --env=prod
I need to put this somehow into php file so that Server admin can add this to Schedule.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Just do the same that the command does. From the command Execute() function:
You need to remove the $output->… line (maybe you can do something useful with the $sent variable). Also, this code looks for two kinds of spool, maybe you don´t need all the code if your spool is not one of these kinds.