Hi, I am having problems with cakephp email. I have this weird problem where my below email code works fine on my local server but not on the remote server.
The error I get is SMTP Error: 534 5.7.14 https://support.google.com/mail/bin/answer.py?answer=78754 u5sm29708221pdh.54 - gsmtp which doesnt make any sense to me because my email does work from my local server, the google account has low security enabled already. my email.php public $gmail2 = array( 'host' => 'ssl://smtp.gmail.com', 'port' => 465, 'username' => 'xx...@gmail.com', 'password' => 'xxxxxx', 'transport' => 'Smtp', ); in controller $Email = new CakeEmail(); $Email->config('gmail2'); // $to=$item['Tutor']['email']; $to='xxxxxxx'; $Email->from( array('xxxxxx' => 'Aptutoring')); $Email->to($to); $Email->subject('Hello'); $Email->send($message); //$message set elsewhere -- 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.