Re: sending mail through google server using EMail component
same thing using swift mailer but 100% compatible with your actual code (just add smtpOptions['type'] = 'tls' or 'ssl' to your array with username/pass) http://www.assembla.com/wiki/show/swift_email_component HTH, -- Marcin Domanski http://kabturek.info On Wed, Oct 1, 2008 at 3:35 AM, Gonzalo Servat <[EMAIL PROTECTED]> wrote: > On Tue, Sep 30, 2008 at 10:10 PM, Zoltan <[EMAIL PROTECTED]> wrote: >> >> [..snip..] >> >> The settings I'm using are: >> >> function send( $subject = 'General', $msg ){ >>$this->Email->from= '[EMAIL PROTECTED]'; >>$this->Email->to = 'Zoltan <[EMAIL PROTECTED]>'; >>$this->Email->subject = $subject; >>$this->Email->replyTo = '[EMAIL PROTECTED]'; >> >> /* SMTP Options */ >> $this->Email->smtpOptions = array( >>'host' => 'smtp.googlemail.com', >>'username'=> '[EMAIL PROTECTED], >>'password'=> 'PASSWORD'; >> >> /* Set delivery method */ >> $this->Email->delivery = 'smtp'; >> /* Do not pass any args to send() */ >> $this->Email->send($msg); >> >> >> I've tried these with other smtp accounts with no problems, but with >> Google the connection just seems to hang with a server time-out. >> >> Anyone have any luck with Google's server? > > Hi, > > I believe you need to use SSL with Google's mail server (not a plaintext > port 25 connection). I don't think the built-in email component supports SSL > so you might want to check out the SwiftMailer component (pay attention to > the $smtpType variable): > > http://bakery.cakephp.org/articles/view/improved-swiftmailer-component > > - Gonzalo > > > > --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: sending mail through google server using EMail component
On Tue, Sep 30, 2008 at 10:10 PM, Zoltan <[EMAIL PROTECTED]> wrote: > > [..snip..] > > The settings I'm using are: > > function send( $subject = 'General', $msg ){ >$this->Email->from= '[EMAIL PROTECTED]'; >$this->Email->to = 'Zoltan <[EMAIL PROTECTED]>'; >$this->Email->subject = $subject; >$this->Email->replyTo = '[EMAIL PROTECTED]'; > > /* SMTP Options */ > $this->Email->smtpOptions = array( >'host' => 'smtp.googlemail.com', >'username'=> '[EMAIL PROTECTED], >'password'=> 'PASSWORD'; > > /* Set delivery method */ > $this->Email->delivery = 'smtp'; > /* Do not pass any args to send() */ > $this->Email->send($msg); > > > I've tried these with other smtp accounts with no problems, but with > Google the connection just seems to hang with a server time-out. > > Anyone have any luck with Google's server? > Hi, I believe you need to use SSL with Google's mail server (not a plaintext port 25 connection). I don't think the built-in email component supports SSL so you might want to check out the SwiftMailer component (pay attention to the $smtpType variable): http://bakery.cakephp.org/articles/view/improved-swiftmailer-component - Gonzalo --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
sending mail through google server using EMail component
Hello, The mail on my website is done through a google account and I'm trying to use that server to send mail (this is being done local from a site running on XAMPP locally currently). The settings I'm using are: function send( $subject = 'General', $msg ){ $this->Email->from= '[EMAIL PROTECTED]'; $this->Email->to = 'Zoltan <[EMAIL PROTECTED]>'; $this->Email->subject = $subject; $this->Email->replyTo = '[EMAIL PROTECTED]'; /* SMTP Options */ $this->Email->smtpOptions = array( 'host' => 'smtp.googlemail.com', 'username'=> '[EMAIL PROTECTED], 'password'=> 'PASSWORD'; /* Set delivery method */ $this->Email->delivery = 'smtp'; /* Do not pass any args to send() */ $this->Email->send($msg); ... I've tried these with other smtp accounts with no problems, but with Google the connection just seems to hang with a server time-out. Anyone have any luck with Google's server? Zoltan --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---