Hello,

I'm using CakeEmail to send emails using Gmail and their SMTP. On my
local environment it sends emails just fine with no errors. I'm not
sure why it would work locally and note remotely. But when I upload it
to the server I get the following error( the send_email() method is
one I made to just pass in the 'to', 'from', 'viewVars', etc..):

Connection refused

Error: An Internal Error Has Occurred.
Stack Trace

#0 /home/content/76/5924776/html/lib/Cake/Network/Email/
SmtpTransport.php(94): CakeSocket->connect()
#1 /home/content/76/5924776/html/lib/Cake/Network/Email/
SmtpTransport.php(59): SmtpTransport->_connect()
#2 /home/content/76/5924776/html/lib/Cake/Network/Email/
CakeEmail.php(966): SmtpTransport->send(Object(CakeEmail))
#3 /home/content/76/5924776/html/app/Controller/AppController.php(64):
CakeEmail->send()
#4 /home/content/76/5924776/html/app/Controller/
PostsController.php(121): AppController->_send_email('send_to_friend',
'html', 'andrewperk@gmai...', 'newvenuswebsite...', 'James has
sent ...', Array)
#5 [internal function]: PostsController->stf()
#6 /home/content/76/5924776/html/lib/Cake/Controller/
Controller.php(473): ReflectionMethod-
>invokeArgs(Object(PostsController), Array)
#7 /home/content/76/5924776/html/lib/Cake/Routing/Dispatcher.php(107):
Controller->invokeAction(Object(CakeRequest))
#8 /home/content/76/5924776/html/lib/Cake/Routing/Dispatcher.php(89):
Dispatcher->_invoke(Object(PostsController), Object(CakeRequest),
Object(CakeResponse))
#9 /home/content/76/5924776/html/app/webroot/index.php(96): Dispatcher-
>dispatch(Object(CakeRequest), Object(CakeResponse))
#10 {main}

If you'd like to see specific code let me know. It's basically just
cut/paste from the 2.0 book though changing out my own gmail settings
and my own view file.

Thanks for any help.

Andrew

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to