yii console command for sending emails

Rendering from a console command was kind of a pain, after figuring that out I realized that all of the urls in the views are incorrect…


<?php echo Yii::app()->createAbsoluteUrl('/inspection/view', array('id'=>$inspection->id)); ?>

which generates:


What is the preferred method of rendering a view in a consolecommand? I’m about ready to just make a controller action and have cron call a url instead of a command. ;)

@DarkNSF got solution for this?