Re: cant send email from localhost
I have found that firewall and/or virus scanner settings will prevent mailing from localhost. Since I am working in a corporate intranet environment, I have no access to any of the configuration settings needed to compensate - so, I simply CANNOT use such functionality. In my case, I have smtp ports blocked AND McAfee prevents 'mass mailing worms from sending mail', and possibly others I have not encountered yet. If you can access your intranet admins, see if they can identify the choke point and can/will provide you an exception to the related setting(s). On Thursday, 18 December 2014 08:48:09 UTC-5, ajt wrote: > > Hi, > > I cant send a email from my localhost xampp/win7 > I dont get an error , I just get nothing > > I set up the email and also config. I read the docs and couldnt see > anything on this. > > http://book.cakephp.org/2.0/en/core-utility-libraries/email.html > > $Email = new CakeEmail(); > $Email->config('smtp') > ->from('em...@gmail.com ') >->to('jagg...@gmail.com ') > ->subject('Test') > ->send($message); > > > public $smtp = array( > 'transport' => 'Smtp', > 'from' => array('site@localhost' => 'My Site'), > 'host' => 'localhost', > 'port' => 25, > 'timeout' => 30, > 'username' => 'user', > 'password' => 'secret', > 'client' => null, > 'log' => false, > //'charset' => 'utf-8', > //'headerCharset' => 'utf-8', > ); > -- 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.
Re: cant send email from localhost
Hey For gmail to work you should probably be using port 587 or 465. Also, you need to be sure that you've enabled IMAP access from within your gmail account settings, otherwise it'll be refused also. On 18 December 2014 at 21:43, ajt wrote: > > This isnt working and I need help as I cant fund help from the docs.I set > up the settings and in the config file I have > > > public $gmail = array( > 'from' => array('jagguy...@gmail.com' => 'Aptutoring'), > 'host' => 'localhost', > 'port' => 25, > 'username' => 'm...@gmail.com', //I changed the name but he > email/password is real gmail account > 'password' => 'test', >// 'transport' => 'Smtp' > ); > > public $smtp = array( > 'transport' => 'Smtp', >// 'from' => array('site@localhost' => 'My Site'), >'from' => array('jagguy...@gmail.com' => 'My Site'), > 'host' => 'localhost', > 'port' => 25, > 'timeout' => 30, > 'username' => 'user', > 'password' => 'secret', > 'client' => null, > 'log' => false, > //'charset' => 'utf-8', > //'headerCharset' => 'utf-8', > ); > > > No connection could be made because the target machine actively refused it. > > -- > 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. > -- Kind Regards Stephen Speakman -- 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.
Re: cant send email from localhost
This isnt working and I need help as I cant fund help from the docs.I set up the settings and in the config file I have public $gmail = array( 'from' => array('jagguy...@gmail.com' => 'Aptutoring'), 'host' => 'localhost', 'port' => 25, 'username' => 'm...@gmail.com', //I changed the name but he email/password is real gmail account 'password' => 'test', // 'transport' => 'Smtp' ); public $smtp = array( 'transport' => 'Smtp', // 'from' => array('site@localhost' => 'My Site'), 'from' => array('jagguy...@gmail.com' => 'My Site'), 'host' => 'localhost', 'port' => 25, 'timeout' => 30, 'username' => 'user', 'password' => 'secret', 'client' => null, 'log' => false, //'charset' => 'utf-8', //'headerCharset' => 'utf-8', ); No connection could be made because the target machine actively refused it. -- 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.
Re: cant send email from localhost
Hi I think the problem may be that Xampp does not have smtp enabled by default, I may be mistaken. Perhaps this can help: http://stackoverflow.com/questions/15965376/how-to-configure-xampp-to-send-mail-from-localhost Cheers On 18 December 2014 at 13:48, ajt wrote: > > Hi, > > I cant send a email from my localhost xampp/win7 > I dont get an error , I just get nothing > > I set up the email and also config. I read the docs and couldnt see > anything on this. > > http://book.cakephp.org/2.0/en/core-utility-libraries/email.html > > $Email = new CakeEmail(); > $Email->config('smtp') > ->from('em...@gmail.com') >->to('jagguy...@gmail.com') > ->subject('Test') > ->send($message); > > > public $smtp = array( > 'transport' => 'Smtp', > 'from' => array('site@localhost' => 'My Site'), > 'host' => 'localhost', > 'port' => 25, > 'timeout' => 30, > 'username' => 'user', > 'password' => 'secret', > 'client' => null, > 'log' => false, > //'charset' => 'utf-8', > //'headerCharset' => 'utf-8', > ); > > -- > 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. > -- Kind Regards Stephen Speakman -- 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.
cant send email from localhost
Hi, I cant send a email from my localhost xampp/win7 I dont get an error , I just get nothing I set up the email and also config. I read the docs and couldnt see anything on this. http://book.cakephp.org/2.0/en/core-utility-libraries/email.html $Email = new CakeEmail(); $Email->config('smtp') ->from('em...@gmail.com') ->to('jagguy...@gmail.com') ->subject('Test') ->send($message); public $smtp = array( 'transport' => 'Smtp', 'from' => array('site@localhost' => 'My Site'), 'host' => 'localhost', 'port' => 25, 'timeout' => 30, 'username' => 'user', 'password' => 'secret', 'client' => null, 'log' => false, //'charset' => 'utf-8', //'headerCharset' => 'utf-8', ); -- 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.