Re: sending mail through Gmail SMTP by Email component?
Try its working. $Email = new CakeEmail(array( 'port' => '465', 'timeout' => '300', 'host' => 'ssl://smtp.gmail.com', 'username' => 'usern...@gmail.com', 'password' => 'password', 'transport' => 'Smtp' )); $Email->emailFormat('html'); $Email->subject('my subject'); $Email->to('tom...@domain.com'); $Email->from('f...@domain.com'); $Email->send('send message to user.'); -- View this message in context: http://cakephp.1045679.n5.nabble.com/sending-mail-through-Gmail-SMTP-by-Email-component-tp2851314p5718486.html Sent from the CakePHP mailing list archive at Nabble.com. -- 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: sending mail through Gmail SMTP by Email component?
Try its working. $Email = new CakeEmail(array( 'port' => '465', 'timeout' => '300', 'host' => 'ssl://smtp.gmail.com', 'username' => 'usern...@gmail.com', 'password' => 'password', 'transport' => 'Smtp' )); $Email->emailFormat('html'); $Email->subject('my subject'); $Email->to('tom...@domain.com'); $Email->from('f...@domain.com'); $Email->send('send message to user.'); Thanks, On Thursday, 23 September 2010 20:22:18 UTC+5:30, pang wrote: > > I met a strange problem while using gmail as SMTP server. > > What I want to do is to send bulk email with my domain email > ser...@tagroup.se , > > I used cakephp Email component to handle this , I followed exact > configuration as mentioned in links below (CakePHP official tutorial > site), but the email can't be sent > > http://book.cakephp.org/view/1290/Sending-A-Message-Using-SMTP > > > My configuration is as follows: > > 'port'=>'465', > 'timeout'=>'30', > 'host' => 'ssl://smtp.gmail.com', > 'username'=>'ser...@tagroup.se ', > 'password'=>'' > > But mail can't be sent. Do I need to set any more parameters? -- 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: sending mail through Gmail SMTP by Email component?
Also keep in mind that you won't be able to send bulk e-mails using Gmail. They have a lot of limitations. On Fri, Sep 24, 2010 at 6:41 AM, archF6 wrote: > I ran into this problem too. > > First, make sure ssl is enabled on your server. > > Next, make sure you format all email addresses in the following way: > $this->Email->to = 'Recipient '; > > Note the "<" and ">" around the actual email address. Google's SMTP > server requires this. > You must also do this for sender email, reply-to address, etc. In > other words, whenever you enter an email address, make sure it's > surrounded by those carrots. > > > On Sep 23, 10:52 am, pang wrote: > > I met a strange problem while using gmail as SMTP server. > > > > What I want to do is to send bulk email with my domain email > > serv...@tagroup.se, > > > > I used cakephp Email component to handle this , I followed exact > > configuration as mentioned in links below (CakePHP official tutorial > > site), but the email can't be sent > > > > http://book.cakephp.org/view/1290/Sending-A-Message-Using-SMTP > > > > My configuration is as follows: > > > > 'port'=>'465', > > 'timeout'=>'30', > > 'host' => 'ssl://smtp.gmail.com', > > 'username'=>'serv...@tagroup.se', > > 'password'=>'' > > > > But mail can't be sent. Do I need to set any more parameters? > > Check out the new CakePHP Questions site http://cakeqs.org and help others > with their CakePHP related questions. > > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To post to this group, send email to cake-php@googlegroups.com > To unsubscribe from this group, send email to > cake-php+unsubscr...@googlegroups.comFor > more options, visit this group at > http://groups.google.com/group/cake-php?hl=en > Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: sending mail through Gmail SMTP by Email component?
I ran into this problem too. First, make sure ssl is enabled on your server. Next, make sure you format all email addresses in the following way: $this->Email->to = 'Recipient '; Note the "<" and ">" around the actual email address. Google's SMTP server requires this. You must also do this for sender email, reply-to address, etc. In other words, whenever you enter an email address, make sure it's surrounded by those carrots. On Sep 23, 10:52 am, pang wrote: > I met a strange problem while using gmail as SMTP server. > > What I want to do is to send bulk email with my domain email > serv...@tagroup.se, > > I used cakephp Email component to handle this , I followed exact > configuration as mentioned in links below (CakePHP official tutorial > site), but the email can't be sent > > http://book.cakephp.org/view/1290/Sending-A-Message-Using-SMTP > > My configuration is as follows: > > 'port'=>'465', > 'timeout'=>'30', > 'host' => 'ssl://smtp.gmail.com', > 'username'=>'serv...@tagroup.se', > 'password'=>'' > > But mail can't be sent. Do I need to set any more parameters? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en