Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ($model->save())
- {
- //Yii::app()->email->send('emendezn@gmail.com','emendezn@gmail.com','Registro','Exitoso');
- $to = 'emendezn@gmail.com';
- $subject = 'the subject';
- $message = 'hello';
- $headers = 'From: webmaster@example.com' . "\r\n" .
- 'Reply-To: webmaster@example.com' . "\r\n" .
- 'X-Mailer: PHP/' . phpversion();
- mail($to, $subject, $message, $headers);
- $this->redirect(array('view', 'id' => $model->id_usuario));
- }
Add Comment
Please, Sign In to add comment