Yii Framework Forum: Sending Email With Yii-User - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Sending Email With Yii-User I want to send username and password to the newly registered users

#1 User is offline   jhejhekukuzaizai 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 24
  • Joined: 11-July 13

Posted 23 July 2013 - 04:45 AM

I want to send username and password to the newly registered users

In yii-user it has the code below in RegistrationController

if (Yii::app()->controller->module->sendActivationMail) {
                            $activation_url = $this->createAbsoluteUrl('/user/activation/activation',array("activkey" => $model->activkey, "email" => $model->email));
                            UserModule::sendMail($model->email,UserModule::t("You have registered from {site_name}",array('{site_name}'=>Yii::app()->name)),UserModule::t("Please activate you account go to {activation_url}",array('{activation_url}'=>$activation_url)));
                        }


My problem is, instead of activation code/url, i want their username and password to be mail.



thanks.

regards,
jhekz41 :D
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users