take a look at the book
 http://book.cakephp.org/view/1290/Sending-A-Message-Using-SMTP


$this->Email->smtpOptions = array(
'port'=>'465',
        'timeout'=>'30',
     'host' => 'ssl://smtp.gmail.com',
      'username'=>'[email protected]',
  'password'=>'your_gmail_password',   );




something like this
if ($this->User->save($this->data)) {
$this->Email->from    = ' <someemail>';
$this->Email->to      = 'your name <someemail>';
$this->Email->subject = 'some subject';
$this->Email->template = 'name of your email temp with no ctp
extension';
$this->Email->sendAs = 'html';
        $this->set(compact('  set your variables   ' ));
        $this->Email->send() ;
        }




}


On Sep 14, 9:41 am, tubiz <[email protected]> wrote:
> Please I have a register action in my user controller how do i send a
> mail to a user after he has successfully registered and his details
> has been stored in the database.
>
> I would like to use  Google SMTP to send the mail.
>
> How do I also send a mail to all registered users as well.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to