Hi,

My email code for cakephp worked fine when I used gmail but not for this 
provider below.
I am not sure what to do as I have all the correct information.
The error get is timed-out

[code]
config/email.php
    public $gmail2 = array(
    'from' => array('x...@xx.com.au' => 'Aptutoring'),        
    'host' => 'mail.ecentriconline.net',
       // 'port' => 2525,
         'port' => 465,    
       'username' => 'x...@ecentriconline.net',
        'password' => 'XXX',
        'transport' => 'Smtp'
    );
      $Email = new CakeEmail();
                             $Email->config('gmail2');  
                             $to=$item['Tutor']['email'];
                      
                             $Email->from( array('x...@xx.com.au' => 
'Aptutoring'));
                             $Email->to($to);
                             $Email->subject('Hello');
             
                             $Email->send($message);  
                          

[/code]

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Reply via email to