Please ensure that you are using the settings that applies to your mail
provider.
Enjoy, John
On Monday, 26 January 2015 16:01:46 UTC+2, ajt wrote:
>
> 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('[email protected]' => 'Aptutoring'),
> 'host' => 'mail.ecentriconline.net',
> // 'port' => 2525,
> 'port' => 465,
> 'username' => '[email protected]',
> 'password' => 'XXX',
> 'transport' => 'Smtp'
> );
> $Email = new CakeEmail();
> $Email->config('gmail2');
> $to=$item['Tutor']['email'];
>
> $Email->from( array('[email protected]' =>
> '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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.