$message[0] = $unique_password[0]['users']['firstname'];
$message[1]='Please click on this link to reset your password: http://test.com/reset_password?password='.$unique_password;
$Email = new CakeEmail();
$Email->config('smtp');
***$Email->viewVars($message[0],$message[1]);***
$Email->template('forgetpassword')
->emailFormat('html')
->to($email)
->from('app@domain.com')
->subject('Password: Urbanbeauty Network')
->send();
我需要在 viewVars 中的视图 $message[0] 和 $message[1] 上发送两个变量。如何做到这一点?请帮忙。