Monday, January 26, 2015

cant send email with this provider


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('info@aptutoring.com.au' => 'Aptutoring'),       
    'host' => 'mail.ecentriconline.net',
       // 'port' => 2525,
         'port' => 465,   
       'username' => 'XXX@ecentriconline.net',
        'password' => 'XXX',
        'transport' => 'Smtp'
    );
      $Email = new CakeEmail();
                             $Email->config('gmail2'); 
                             $to=$item['Tutor']['email'];
                     
                             $Email->from( array('info@aptutoring.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+unsubscribe@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.

No comments: