Mails not getting sent

My mails are jot being sent whenever a user registers successfully through a form. Used to work properly but it stopped all of a sudden now. The form entries are caught in the database properly. Below is the controller code for mails to send.

public function actionIndex()
		$model=new FilmclubMembersHome;

		// Uncomment the following line if AJAX validation is needed
		// $this->performAjaxValidation($model);

			if($model->save()) {
                            if($model->id != null){
                            $model->membership_id = $model->generateMembershipId($model->id);
                                                                        $rootImgUrl = $this->createAbsoluteUrl('/images/emailer');
                                                                        $filmclubUrl = $this->createAbsoluteUrl('/site/filmclub');
                                                                        $homeUrl = $this->createAbsoluteUrl('/');
                                                                        $userFullName = $model->fname;
                                                                        $data = array('userFullName'=>$userFullName, 'rootImgUrl'=>$rootImgUrl, 'homeUrl'=>$homeUrl, 'filmclubUrl'=>$filmclubUrl, 'membershipId'=>$model->membership_id);
                                                                        $message = $this->renderPartial('//email/filmclub-home', $data, true);
                                                                        $subject = "Welcome to the MAMI Year Round Programme";
                                                                        UserModule::sendMail(Yii::app()->params['mamiyearroundEmail'], $model->email, $subject, $message);
                            Yii::app()->user->setFlash('registration',UserModule::t("Thank you for your registration."));

Check mailer config (are files used?). Check logs.

Which mailer config files are you talking about ?

swiftmailer is not being used in the website at all