Hi,
symfony is asking for a template relative to the create action.

Usually, you don't have such template, so you should (optionally):

- redirect the user with $this->redirect('new-url');
- change the template after the action is executed with $this->setTemplate('new');
- create the createSuccess.php template.

I also suggest to use the swift_mailer:

http://www.symfony-project.org/more-with-symfony/1_4/en/04-Emails

Hope this helps,
Pietro


hello  every body

please  help me  i make this code

public function executeCreate(sfWebRequest $request)
  {


$this ->  formpersonne= new PersonneForm();


  $this->form = $this->configuration->getForm($this->personne);

$head = "From: Admin<.$email_admin.>\n";
  $mail =   $this->formpersonne['Email']->getValue();



  $object  = 'inscription reussite';
  $message='je vous informe  que vous ĂȘtes  inscrit dans  votre association';


mail($mail, $object, $message, $head);



  }


in order to send mail  to perssone with  i  revover it from form  i
work in the backend  but i have this error

500 | Internal Server Error | sfRenderException
The template "createSuccess.php" does not exist or is unreadable in "".

im blockend  and i must  resolve this  problem

i will be grateful

thank you


--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to