Hello,

I am using PHPMailer and i have an issue when the email is sent.
When the user forgot is password, I generate another one and I send it 
to him.
The thing is, when he submits the form, my view disappear.

If i try this :
$this->Email->send();
$this->set('msg', 'The email has been successfully sent');
I never see the message and my form disappear.

If i try this :
$this->Email->send();
$this->Session->setFlash('The email has been successfully sent');
$this->redirect('/users/forgotpwd'); //the same view
exit();
It works but I cannot write a message via $this->Session->setFlash('The 
email has been successfully sent'); because I am using Ajax when I call 
the others view : registration and login. So the message is always 
present, and i don't want that.

I would like that my form does not disappear when the user submit the 
form. And I know that it is due to the line $this->Email->send(); 
because if I comment it, the message "The email has been successfully 
sent" is displayed and my form present.

Does Someone know what i should do to fix this ?

Thanks for your help

-- 
 *Pierre MARCOURT*      
         
*IT Department*         
        *CableOrganizer.com*
5610 NW 12th Ave, suite 214
Fort Lauderdale, FL 33304
 

        
        Phone: 954-861-6310
Fax: 954-861-2001


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to