Mail not working tried every way

My email sending functionality is not workin i have tried three ways on usin

1)http://www.yiiframework.com/extension/mail

2)http://www.yiiframework.com/extension/email/

3)using simple mail

but none of them worked ou following is my code

my extension http://www.yiiframework.com/extension/email/ is in protected/extensions/email

code for main.php

‘import’=>array(

	'application.models.*',


	'application.components.*',


	'application.extensions.yii-mail.*'


),

‘components’=>array(

	'user'=>array(


		// enable cookie-based authentication


		'allowAutoLogin'=>true,


		'loginUrl'=>'index.php?r=Vuser/login',


	),


	 'email'=>array(


                           'class'=>'application.extensions.email.Email',


                           'delivery'=>'php',

)

code for controller

                           $email = Yii::app()->email;


			$email->to = 'sonam@virtualservices.in';


			$email->subject = 'sonam';


			//$email->view = 'myview';


			


			//$email->viewVars = array('var1'=>'test','var2'=>'test2');


			if($email->send())


			{


				$this->redirect(array('vuser/myprofile'));


			}

Please helpppppppppppppppp me out as i have wasted long hours on ittttttttttttttttttttt

Hi Sonam,

try to send mail manually by telneting to your SMTP server.Then you can verify is it a wrong with SMTP server or your codings.

http://www.yuki-onna.co.uk/email/smtp.html

Thanks

Aruna