Hello,
i have a form to send an e-mail.

The function validateSend() :

public function validateSend()
        {
                if ($this->getRequest()->getMethod() != sfRequest::POST)
                {
                        $this->setTemplate('send');
                }else
                        {


                $name = $this->getRequestParameter('name');
                if (!$name)
                {
                        $this->getRequest()->setError('name', 'Le champ Nom 
doit être
remplis.');
                        return false;
                }


                $mail = $this->getRequestParameter('mail');
                if (!$mail)
                {
                        $this->getRequest()->setError('mail', 'Le champ Mail 
doit être
remplis.');
                        return false;
                }

                $object = $this->getRequestParameter('object');
                if(!$object)
                {
                        $this->getRequest()->setError('object', 'Le champ Objet 
doit être
remplis.');
                        return false;
                }

                $message = $this->getRequestParameter('message');
                if(!$message)
                {
                        $this->getRequest()->setError('message', 'Le champ 
Message doit
être remplis.');
                        return false;
                }

                return true;
                        }
                        return false;
        }

If i don't use the function (rename or del...), the mail is send with
no problem. But when the script use this function, the mail is never
send.
I'm sure something wrong with this function but i don't see the
problem.

Any idee ?
Thanks !
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to