Modify object to create absolute URL on send mail registration user.

Error : Using $this when not in object context
change $this and CController to Yii::app() object.