Return to Snippet

Revision: 33738
at October 12, 2010 23:02 by luglio7


Initial Code
$this->Email->smtpOptions = array(
   'port'=>'465', 
   'timeout'=>'30',
   'auth' => true,
   'host' => 'ssl://smtp.gmail.com',
   'username'=>'[email protected]',
   'password'=>'yourpassword'
);
			
$this->Email->to      = 'test <[email protected]>'; // important: name <mailaddress>
$this->Email->subject = "email di prova";
$this->Email->delivery = 'smtp';
$this->Email->send();

Initial URL

                                

Initial Description

                                

Initial Title
send mail with gmail (smtp)

Initial Tags
cakephp

Initial Language
PHP