How To: Trigger A Command Script

Hi,

I’m using the great script [Email Queue Code] by waterloomatt which is populating the database with a queue of emails, but i dont know how to get the emails to send.

I think I need to trigger the Command file in /protected/commands/MailQueueCommand.php

How can i trigger this command to run? I’ll ultimatley make a CRON to do it…

Anyone else got this queue to send out the email? am I mising something?!

Yii-Mail is working ok if i test with




$message = new YiiMailMessage;

$message->setBody('Message content here with HTML', 'text/html');

$message->subject = 'My Subject';

$message->addTo('me@work.co.uk');

$message->from = Yii::app()->params['adminEmail'];

Yii::app()->mail->send($message);