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.
Email Component in 1.3 - Messages fail to send from a Lotus Notes server when one or more email addresses aren't found.
The email component only offers "550 5.0.0 ... User unknown.". What's odd is that the message isn't sent at all (i.e., no one on the distribution list receives the message). I've tried setting the "return" attribute without success. Anyone have this experience and/or a soltuion? Thanks, Jeff -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Email Component, cc and bcc not working?
Hi, A long time has passed, but can you show me more code? I cant get this working. Ben On Wednesday, May 13, 2009 2:37:31 PM UTC+10, Louie Miranda wrote: > > It worked! thanks a lot. > > $ccArray = array('lmir...@example.com ', > 'us...@example.com > '); > -- > Louie Miranda (lmir...@gmail.com ) > http://www.louiemiranda.net > > Quality Web Hosting - www.axishift.com > Pinoy Web Hosting, Web Hosting Philippines > > > On Wed, May 13, 2009 at 12:17 PM, Graham Weldon > > > wrote: > >> Hi Louie, >> >> I believe the cc and bcc variables need to be arrays. >> Try wrapping them in an array and see how that goes for you. >> >> Cheers, >> Graham Weldon >> http://grahamweldon.com >> >> >> >> >> >> >> Louie Miranda wrote: >> >> Hi, I have setup the email component properly on cakephp. I can send and >> it's ok for both html and text. >> >> I tried adding the cc and bcc option, however. It seems to be not working. >> http://api.cakephp.org/class/email-component >> >> $this->Email->to = 'us...@example.com , >> lmir...@example.com >> '; >> $this->Email->cc = 'us...@example.com '; >> $this->Email->bcc = 'bcc...@example.com '; >> >> I am using CakePHP... >> >> cat VERSION.txt >> >> /// >> // >> +---+ >> >> // >> // + $Id: VERSION.txt 7962 2008-12-25 23:30:33Z gwoo $ >> // + Last Modified: $Date: 2008-12-25 17:30:33 -0600 (Thu, 25 Dec 2008) $ >> // + Modified By: $LastChangedBy: gwoo $ >> // >> +---+ >> >> // >> >> /// >> >> *1.2.0.7962* >> >> any ideas? >> -- >> Louie Miranda (lmir...@gmail.com ) >> http://www.louiemiranda.net >> >> Quality Web Hosting - www.axishift.com >> Pinoy Web Hosting, Web Hosting Philippines >> >> >> >> >> >> > -- 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 post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: [ASK] Email Component : 101 Connection time out
On Fri, Feb 10, 2012 at 9:11 AM, thom wrote: > Hello, I'd like to ask about EmailComponent in CakePHP. M trying to send > email via SMTP (Google), gimme error 110: Connection timed out What does > it mean? And how to solve it? FYI, M using Ubuntu 11.04. Thank you before > for any response. > Oops.. It was my ISP causing I couldn't send the email. They blocks any smtp from any free-email service, they said. What the.. OK then, case closed ^_^ -- Regards,,, thom http://mynameisthom.blogspot.com http://www.twitter.com/iamthom_ http://id.linkedin.com/in/mastanto -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
[ASK] Email Component : 101 Connection time out
Hello, I'd like to ask about EmailComponent in CakePHP. M trying to send email via SMTP (Google), gimme error 110: Connection timed out What does it mean? And how to solve it? FYI, M using Ubuntu 11.04. Thank you before for any response. -- Regards,,, thom http://mynameisthom.blogspot.com http://www.twitter.com/iamthom_ http://id.linkedin.com/in/mastanto -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: How to declare a cakephp email component
nope, EmailComponent is deprecated, use CakeEmail App::uses('CakeEmail', 'Network/Email'); $email = new CakeEmail; -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/1/6 Daniel > When I try to declare an email component: > $email = new Email(); > ... I get the following error: > > Fatal error: Class 'Email' not found in C:\xampp\htdocs\testapp > \controllers\users_controller.php on line 72 > > I tried adding a reference at the top of my controller: > > var $components = array('Email'); > > ... but I am just guessing. What am I doing wrong? > > Thanks. > > -- > 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 > cake-php+unsubscr...@googlegroups.com For more options, visit this group > at http://groups.google.com/group/cake-php > -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
How to declare a cakephp email component
When I try to declare an email component: $email = new Email(); ... I get the following error: Fatal error: Class 'Email' not found in C:\xampp\htdocs\testapp \controllers\users_controller.php on line 72 I tried adding a reference at the top of my controller: var $components = array('Email'); ... but I am just guessing. What am I doing wrong? Thanks. -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Email component working wrong
Yes I am sure that the 'username' is the email. Sorry for the double post. On Sep 11, 10:18 am, euromark wrote: > are you sure that the "username" is actually an email address? > or did you wanna write $User['User']['email'] ? > > On 9 Sep., 16:48, Piotr Chabros wrote: > > > > > > > > > Hello, > > > I have a function sending email to all the users, and every email sent > > is copied to another email address too: > > > [CODE HERE] > > $this->Email->to = $User['User']['username']; > > $this->Email->bcc = array('b...@hotmail.co.uk'); > > [CODE HERE] > > > The thing is the email sent to the user is different than the copy. I > > have no idea why it happens, the commands are one under another as > > shown. > > > Please help, > > Peter. -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: CakePHP email component problem
duplicate thread: http://groups.google.com/group/cake-php/browse_thread/thread/13a87371c17428e euromark has started supporting this at other thread On Sep 10, 2:47 pm, Piotr Chabros wrote: > Hello, > > in my application there is a part of a code responsible of sending an > emails to my users. It is a loop cycling through the whole database of > users and just sending the email. Also when any email is sent, there > is a copy sent to another email addres. The problem is that some of > the users recieve other content in their email than it is in the copy. > > The commands are one under another, so I have no idea why this is > happening: > > if ($TestMode == 'live') { // if not in test mode > $this->Email->to = $User['User']['username']; // > username - user's email address > $this->Email->bcc = array(c...@here.co.uk'); // mail to > send a bcc copy > }else{ // if in test mode > $this->Email->to = array('sysadm...@hotmail.co.uk', > 'sysadm...@gmail.com', > 'sysadm...@googlemail.com'); > } > // Send e-mail to user. > $this->Email->subject = 'blahblah; > $this->Email->template = 'my_template'; > $this->Email->sendAs = 'html'; > $this->Email->send(); > $this->Email->reset(); > > The above code is a part of the loop. But the question is, why some > users are getting another email than it is sent to > c...@here.hotmail.co.uk ? Maybe this problem is of another matter? > Please help! -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Email component working wrong
Duplicate thread: http://groups.google.com/group/cake-php/t/a749cc9e6c8f2869 On Sep 11, 9:18 am, euromark wrote: > are you sure that the "username" is actually an email address? > or did you wanna write $User['User']['email'] ? > > On 9 Sep., 16:48, Piotr Chabros wrote: > > > > > > > > > Hello, > > > I have a function sending email to all the users, and every email sent > > is copied to another email address too: > > > [CODE HERE] > > $this->Email->to = $User['User']['username']; > > $this->Email->bcc = array('b...@hotmail.co.uk'); > > [CODE HERE] > > > The thing is the email sent to the user is different than the copy. I > > have no idea why it happens, the commands are one under another as > > shown. > > > Please help, > > Peter. -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Email component working wrong
are you sure that the "username" is actually an email address? or did you wanna write $User['User']['email'] ? On 9 Sep., 16:48, Piotr Chabros wrote: > Hello, > > I have a function sending email to all the users, and every email sent > is copied to another email address too: > > [CODE HERE] > $this->Email->to = $User['User']['username']; > $this->Email->bcc = array('b...@hotmail.co.uk'); > [CODE HERE] > > The thing is the email sent to the user is different than the copy. I > have no idea why it happens, the commands are one under another as > shown. > > Please help, > Peter. -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
CakePHP email component problem
Hello, in my application there is a part of a code responsible of sending an emails to my users. It is a loop cycling through the whole database of users and just sending the email. Also when any email is sent, there is a copy sent to another email addres. The problem is that some of the users recieve other content in their email than it is in the copy. The commands are one under another, so I have no idea why this is happening: if ($TestMode == 'live') { // if not in test mode $this->Email->to = $User['User']['username']; // username - user's email address $this->Email->bcc = array(c...@here.co.uk'); // mail to send a bcc copy }else{ // if in test mode $this->Email->to = array('sysadm...@hotmail.co.uk', 'sysadm...@gmail.com', 'sysadm...@googlemail.com'); } // Send e-mail to user. $this->Email->subject = 'blahblah; $this->Email->template = 'my_template'; $this->Email->sendAs = 'html'; $this->Email->send(); $this->Email->reset(); The above code is a part of the loop. But the question is, why some users are getting another email than it is sent to c...@here.hotmail.co.uk ? Maybe this problem is of another matter? Please help! -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Email component working wrong
Hello, I have a function sending email to all the users, and every email sent is copied to another email address too: [CODE HERE] $this->Email->to = $User['User']['username']; $this->Email->bcc = array('b...@hotmail.co.uk'); [CODE HERE] The thing is the email sent to the user is different than the copy. I have no idea why it happens, the commands are one under another as shown. Please help, Peter. -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: CAKEPHP Email component not working in live server.. how to get the error response why that mail is not going
Can you send an email VIA command line (sendmail or postfix)? On Aug 29, 2011, at 4:42 AM, Gmail Support wrote: > Hi > > Thanx for your response. But my controller has 4 mail functions but none of > the mails are going in Live server only. Still I try to find a solution. > > When a third party guys hitting our url we are sending mail to users. This is > working in my local. But i not used auth component or any authentication in > this controller. > So I thinking that problem regarding that only. So I Plan to copy and move > the email contents to another controller, at the same time i will follow your > things > > > > On Tue, Aug 23, 2011 at 12:13 PM, ShadowCross wrote: > If using the EmailComponent works in other parts of your controller, > and the "code excerpt" you provided was just manually entered into > your original email (the first two lines would have resulted in a > syntax error as it is written) you can try adding > > $this->Email->return = "Mysitename "; > > before the call to $this->Email->send(). This will add the > appropriate mail header to indicate what email address to send > bounceback emails. I've had some domains (such as gmail.com) refuse > emails from my webserver because its a shared host that was at one > time flagged as a potential spam source. The bounceback emails are > normally sent to the FROM address, but it looks like the FROM you are > using is something like 'no-re...@mysite.com', which probably doesn't > exist, so any delivery errors (remote mailserver down, remote user has > exceeded his quota, unknown user, etc.) are being delivered into the > ether. > > It may also be possible that the receiving email client is routing > your email to a spam folder. In this case, there will be no bounceback > email. You could display a message like "The email has been sent to > . Please make sure that is on > your list of trusted senders to avoid the mail being sent to your Spam > folder.". Of course, this will only work if the email is being sent > as a direct result of the user interacting with your website. > > Note: The fact that $this->Email->send() returns true doesn't mean the > email was delivered; usually, it will use the PHP mail() function, and > according to the PHP manual (http://php.net/manual/en/ > function.mail.php): > > Returns TRUE if the mail was successfully accepted for delivery, > FALSE otherwise. > It is important to note that just because the mail was accepted for > delivery, it does NOT mean the mail will actually reach the intended > destination > > BTW: Is there a reason you are wrapping the $this->Email->send() > within ob_start()/ob_end_clean() ? Output buffering generally only > deals with output that is being sent to the client browser, but $this- > >Email->send() and $this->log() shouldn't be sending anything to the > browser (unless you have Debug > 0, in which case you WANT to see the > debug messages). > > -- > 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 > cake-php+unsubscr...@googlegroups.com For more options, visit this group at > http://groups.google.com/group/cake-php > > > -- > 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 > cake-php+unsubscr...@googlegroups.com For more options, visit this group at > http://groups.google.com/group/cake-php -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: CAKEPHP Email component not working in live server.. how to get the error response why that mail is not going
Hi Thanx for your response. But my controller has 4 mail functions but none of the mails are going in Live server only. Still I try to find a solution. When a third party guys hitting our url we are sending mail to users. This is working in my local. But i not used auth component or any authentication in this controller. So I thinking that problem regarding that only. So I Plan to copy and move the email contents to another controller, at the same time i will follow your things On Tue, Aug 23, 2011 at 12:13 PM, ShadowCross wrote: > If using the EmailComponent works in other parts of your controller, > and the "code excerpt" you provided was just manually entered into > your original email (the first two lines would have resulted in a > syntax error as it is written) you can try adding > > $this->Email->return = "Mysitename "; > > before the call to $this->Email->send(). This will add the > appropriate mail header to indicate what email address to send > bounceback emails. I've had some domains (such as gmail.com) refuse > emails from my webserver because its a shared host that was at one > time flagged as a potential spam source. The bounceback emails are > normally sent to the FROM address, but it looks like the FROM you are > using is something like 'no-re...@mysite.com', which probably doesn't > exist, so any delivery errors (remote mailserver down, remote user has > exceeded his quota, unknown user, etc.) are being delivered into the > ether. > > It may also be possible that the receiving email client is routing > your email to a spam folder. In this case, there will be no bounceback > email. You could display a message like "The email has been sent to > . Please make sure that is on > your list of trusted senders to avoid the mail being sent to your Spam > folder.". Of course, this will only work if the email is being sent > as a direct result of the user interacting with your website. > > Note: The fact that $this->Email->send() returns true doesn't mean the > email was delivered; usually, it will use the PHP mail() function, and > according to the PHP manual (http://php.net/manual/en/ > function.mail.php): > > Returns TRUE if the mail was successfully accepted for delivery, > FALSE otherwise. > It is important to note that just because the mail was accepted for > delivery, it does NOT mean the mail will actually reach the intended > destination > > BTW: Is there a reason you are wrapping the $this->Email->send() > within ob_start()/ob_end_clean() ? Output buffering generally only > deals with output that is being sent to the client browser, but $this- > >Email->send() and $this->log() shouldn't be sending anything to the > browser (unless you have Debug > 0, in which case you WANT to see the > debug messages). > > -- > 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 > cake-php+unsubscr...@googlegroups.com For more options, visit this group > at http://groups.google.com/group/cake-php > -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: CAKEPHP Email component not working in live server.. how to get the error response why that mail is not going
If using the EmailComponent works in other parts of your controller, and the "code excerpt" you provided was just manually entered into your original email (the first two lines would have resulted in a syntax error as it is written) you can try adding $this->Email->return = "Mysitename "; before the call to $this->Email->send(). This will add the appropriate mail header to indicate what email address to send bounceback emails. I've had some domains (such as gmail.com) refuse emails from my webserver because its a shared host that was at one time flagged as a potential spam source. The bounceback emails are normally sent to the FROM address, but it looks like the FROM you are using is something like 'no-re...@mysite.com', which probably doesn't exist, so any delivery errors (remote mailserver down, remote user has exceeded his quota, unknown user, etc.) are being delivered into the ether. It may also be possible that the receiving email client is routing your email to a spam folder. In this case, there will be no bounceback email. You could display a message like "The email has been sent to . Please make sure that is on your list of trusted senders to avoid the mail being sent to your Spam folder.". Of course, this will only work if the email is being sent as a direct result of the user interacting with your website. Note: The fact that $this->Email->send() returns true doesn't mean the email was delivered; usually, it will use the PHP mail() function, and according to the PHP manual (http://php.net/manual/en/ function.mail.php): Returns TRUE if the mail was successfully accepted for delivery, FALSE otherwise. It is important to note that just because the mail was accepted for delivery, it does NOT mean the mail will actually reach the intended destination BTW: Is there a reason you are wrapping the $this->Email->send() within ob_start()/ob_end_clean() ? Output buffering generally only deals with output that is being sent to the client browser, but $this- >Email->send() and $this->log() shouldn't be sending anything to the browser (unless you have Debug > 0, in which case you WANT to see the debug messages). -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: CAKEPHP Email component not working in live server.. how to get the error response why that mail is not going
no dude... other mail functions from this controller are working fine On Mon, Aug 22, 2011 at 2:05 PM, abhimanyu bv wrote: > maybe you have forgot to configure smtp settings in your cakephp. > > -- > 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 > cake-php+unsubscr...@googlegroups.com For more options, visit this group > at http://groups.google.com/group/cake-php > -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: CAKEPHP Email component not working in live server.. how to get the error response why that mail is not going
maybe you have forgot to configure smtp settings in your cakephp. -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
CAKEPHP Email component not working in live server.. how to get the error response why that mail is not going
I using cakephp email component. In my live server $this->Email- >send() return success. but mail is not receiving. what is the problem?? i need to find whats the error ? $this->Email->from = Mysitename ; $this->Email->to = sam...@gmail.com $this->Email->subject = "This is test"; $this->Email->template = 'template_name'; $this->Email->sendAs = 'html'; ob_start(); if($this->Email->send()) { $this->log(' Mail Success'); } else { $this->log('Something broke in mail'); } ob_end_clean(); -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: GPG/PGP Signed with Email Component
The email component is extensible. See this example: http://bakery.cakephp.org/articles/dankroad/2011/01/30/integrate_amazon_simple_email_service_ses_into_existing_application While it's purpose is different than yours it should give some ideas. On Fri, Jul 22, 2011 at 8:44 AM, Christophe Vandeplas wrote: > Hello bujanga, > > That's indeed what I am doing now, but it is a violation of the MVC principle. > So I'd like to do it the clean way, but I need a little help to get started. > > Of course I'll publish any final code if it becomes a plugin/component ... > > > On Mon, Jul 18, 2011 at 10:21 PM, bujanga wrote: >> I do something very similar. Though I send plain text email only. I >> create my data as fully formatted, sign/encrypt it and then send it to >> a template that just outputs the field. >> >> On Mon, Jul 18, 2011 at 12:16 PM, Christophe Vandeplas >> wrote: >>> Hello, >>> >>> >>> My webapplication needs to send out emails that are signed with a GPG >>> signature. >>> However as I am using the Email component this seems a little more >>> complicated as I can't really figure out how to do it. Any help will >>> be appreciated and compensated with Belgian beer if we ever meet. >>> >>> Signing data using GnuPG (and the PEAR GPG classes) is relatively >>> easy: >>> require_once 'Crypt/GPG.php'; >>> $gpg = new Crypt_GPG(); >>> $text = "Hello world"; >>> $gpg->addSignKey(Configure::read('GnuPG.email'), >>> Configure::read('GnuPG.password')); >>> $text_signed = $gpg->sign($text, Crypt_GPG::SIGN_MODE_CLEAR); >>> debug($text_signed); >>> >>> The code I use to send out the email is here. The "new_event" view >>> will be used to format my email message with the data from $event. >>> >>> $this->Email->from = "foo "; >>> $this->Email->to = "bar "; >>> $this->Email->subject = "[foo] new event"; >>> $this->Email->delivery = 'debug'; // do not really send out >>> mails, only display it on the screen >>> $this->Email->template = 'new_event'; // in views/elements/ >>> email/html or text >>> $this->Email->sendAs = 'text'; // both text or html >>> $this->set('event', $event); >>> $this->Email->send(); >>> >>> Now the GPG magic needs to happen on the email body/message. >>> I've opened the EmailComponent class to find out that the ->send() >>> function _renders() the mail using the view and finally sends it using >>> the delivery method (mail, smtp,...). >>> >>> However I can't find a way to extract the rendered body, sign it, push >>> it back and then let it be sent. >>> >>> I guess I will probably need to make a new component class to handle >>> this. However I have absolutely no idea where or how to start. >>> Considering the few lines required to do the gpg signing it shouldn't >>> be to difficult though... >>> >>> Could you give me some advice to get this going? >>> >>> Thanks >>> Christophe >>> >>> -- >>> 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 >>> cake-php+unsubscr...@googlegroups.com For more options, visit this group at >>> http://groups.google.com/group/cake-php >>> >> >> -- >> 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 >> cake-php+unsubscr...@googlegroups.com For more options, visit this group at >> http://groups.google.com/group/cake-php >> > > -- > 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 > cake-php+unsubscr...@googlegroups.com For more options, visit this group at > http://groups.google.com/group/cake-php > -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: GPG/PGP Signed with Email Component
Hello bujanga, That's indeed what I am doing now, but it is a violation of the MVC principle. So I'd like to do it the clean way, but I need a little help to get started. Of course I'll publish any final code if it becomes a plugin/component ... On Mon, Jul 18, 2011 at 10:21 PM, bujanga wrote: > I do something very similar. Though I send plain text email only. I > create my data as fully formatted, sign/encrypt it and then send it to > a template that just outputs the field. > > On Mon, Jul 18, 2011 at 12:16 PM, Christophe Vandeplas > wrote: >> Hello, >> >> >> My webapplication needs to send out emails that are signed with a GPG >> signature. >> However as I am using the Email component this seems a little more >> complicated as I can't really figure out how to do it. Any help will >> be appreciated and compensated with Belgian beer if we ever meet. >> >> Signing data using GnuPG (and the PEAR GPG classes) is relatively >> easy: >> require_once 'Crypt/GPG.php'; >> $gpg = new Crypt_GPG(); >> $text = "Hello world"; >> $gpg->addSignKey(Configure::read('GnuPG.email'), >> Configure::read('GnuPG.password')); >> $text_signed = $gpg->sign($text, Crypt_GPG::SIGN_MODE_CLEAR); >> debug($text_signed); >> >> The code I use to send out the email is here. The "new_event" view >> will be used to format my email message with the data from $event. >> >> $this->Email->from = "foo "; >> $this->Email->to = "bar "; >> $this->Email->subject = "[foo] new event"; >> $this->Email->delivery = 'debug'; // do not really send out >> mails, only display it on the screen >> $this->Email->template = 'new_event'; // in views/elements/ >> email/html or text >> $this->Email->sendAs = 'text'; // both text or html >> $this->set('event', $event); >> $this->Email->send(); >> >> Now the GPG magic needs to happen on the email body/message. >> I've opened the EmailComponent class to find out that the ->send() >> function _renders() the mail using the view and finally sends it using >> the delivery method (mail, smtp,...). >> >> However I can't find a way to extract the rendered body, sign it, push >> it back and then let it be sent. >> >> I guess I will probably need to make a new component class to handle >> this. However I have absolutely no idea where or how to start. >> Considering the few lines required to do the gpg signing it shouldn't >> be to difficult though... >> >> Could you give me some advice to get this going? >> >> Thanks >> Christophe >> >> -- >> 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 >> cake-php+unsubscr...@googlegroups.com For more options, visit this group at >> http://groups.google.com/group/cake-php >> > > -- > 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 > cake-php+unsubscr...@googlegroups.com For more options, visit this group at > http://groups.google.com/group/cake-php > -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: GPG/PGP Signed with Email Component
I do something very similar. Though I send plain text email only. I create my data as fully formatted, sign/encrypt it and then send it to a template that just outputs the field. On Mon, Jul 18, 2011 at 12:16 PM, Christophe Vandeplas wrote: > Hello, > > > My webapplication needs to send out emails that are signed with a GPG > signature. > However as I am using the Email component this seems a little more > complicated as I can't really figure out how to do it. Any help will > be appreciated and compensated with Belgian beer if we ever meet. > > Signing data using GnuPG (and the PEAR GPG classes) is relatively > easy: > require_once 'Crypt/GPG.php'; > $gpg = new Crypt_GPG(); > $text = "Hello world"; > $gpg->addSignKey(Configure::read('GnuPG.email'), > Configure::read('GnuPG.password')); > $text_signed = $gpg->sign($text, Crypt_GPG::SIGN_MODE_CLEAR); > debug($text_signed); > > The code I use to send out the email is here. The "new_event" view > will be used to format my email message with the data from $event. > > $this->Email->from = "foo "; > $this->Email->to = "bar "; > $this->Email->subject = "[foo] new event"; > $this->Email->delivery = 'debug'; // do not really send out > mails, only display it on the screen > $this->Email->template = 'new_event'; // in views/elements/ > email/html or text > $this->Email->sendAs = 'text'; // both text or html > $this->set('event', $event); > $this->Email->send(); > > Now the GPG magic needs to happen on the email body/message. > I've opened the EmailComponent class to find out that the ->send() > function _renders() the mail using the view and finally sends it using > the delivery method (mail, smtp,...). > > However I can't find a way to extract the rendered body, sign it, push > it back and then let it be sent. > > I guess I will probably need to make a new component class to handle > this. However I have absolutely no idea where or how to start. > Considering the few lines required to do the gpg signing it shouldn't > be to difficult though... > > Could you give me some advice to get this going? > > Thanks > Christophe > > -- > 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 > cake-php+unsubscr...@googlegroups.com For more options, visit this group at > http://groups.google.com/group/cake-php > -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
GPG/PGP Signed with Email Component
Hello, My webapplication needs to send out emails that are signed with a GPG signature. However as I am using the Email component this seems a little more complicated as I can't really figure out how to do it. Any help will be appreciated and compensated with Belgian beer if we ever meet. Signing data using GnuPG (and the PEAR GPG classes) is relatively easy: require_once 'Crypt/GPG.php'; $gpg = new Crypt_GPG(); $text = "Hello world"; $gpg->addSignKey(Configure::read('GnuPG.email'), Configure::read('GnuPG.password')); $text_signed = $gpg->sign($text, Crypt_GPG::SIGN_MODE_CLEAR); debug($text_signed); The code I use to send out the email is here. The "new_event" view will be used to format my email message with the data from $event. $this->Email->from = "foo "; $this->Email->to = "bar "; $this->Email->subject = "[foo] new event"; $this->Email->delivery = 'debug'; // do not really send out mails, only display it on the screen $this->Email->template = 'new_event'; // in views/elements/ email/html or text $this->Email->sendAs = 'text';// both text or html $this->set('event', $event); $this->Email->send(); Now the GPG magic needs to happen on the email body/message. I've opened the EmailComponent class to find out that the ->send() function _renders() the mail using the view and finally sends it using the delivery method (mail, smtp,...). However I can't find a way to extract the rendered body, sign it, push it back and then let it be sent. I guess I will probably need to make a new component class to handle this. However I have absolutely no idea where or how to start. Considering the few lines required to do the gpg signing it shouldn't be to difficult though... Could you give me some advice to get this going? Thanks Christophe -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: can't send a email using default cake php email component
Hi all, thank u guys for the help, I did it! Sathiya S, thanks for your link! On Sat, May 28, 2011 at 5:58 AM, Ryan Schmidt wrote: > > On May 27, 2011, at 18:49, yosef.ke...@gmail.com wrote: > > > There's nothing to do with the version. > > On principal, it's a good idea to update to the latest version. It might > fix bugs you don't even know you're experiencing. > > > But I think u need to configure the apache to send an email since it was > localhost. > > Apache is a web server; it does not send emails. > > > I mean like on Linux, we should install sendmail package first to make > our localhost sending email through internet > > True, that's one possible way of configuring email sending. Another way is > to specify a server name, port number, username, password. That's why I > asked to see the code. It's not efficient for us to make wild guesses. > > > -- > 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 > cake-php+unsubscr...@googlegroups.com For more options, visit this group > at http://groups.google.com/group/cake-php > -- -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: can't send a email using default cake php email component
On May 27, 2011, at 18:49, yosef.ke...@gmail.com wrote: > There's nothing to do with the version. On principal, it's a good idea to update to the latest version. It might fix bugs you don't even know you're experiencing. > But I think u need to configure the apache to send an email since it was > localhost. Apache is a web server; it does not send emails. > I mean like on Linux, we should install sendmail package first to make our > localhost sending email through internet True, that's one possible way of configuring email sending. Another way is to specify a server name, port number, username, password. That's why I asked to see the code. It's not efficient for us to make wild guesses. -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: can't send a email using default cake php email component
There's nothing to do with the version. But I think u need to configure the apache to send an email since it was localhost. I mean like on Linux, we should install sendmail package first to make our localhost sending email through internet Kind Regards, Kevin http://codingexplorer.blogspot.com PIN : 21AD562F MSN : yosef.ke...@hotmail.com YM: yosef.kevin Gtalk: yosef.kevin -Original Message- From: Ryan Schmidt Sender: cake-php@googlegroups.com Date: Fri, 27 May 2011 18:42:20 To: Reply-To: cake-php@googlegroups.com Subject: Re: can't send a email using default cake php email component On May 27, 2011, at 00:33, madusanka hettiarachchi wrote: > im new to php. I tried to send a mail using existing code in cake php > mannual. bt it doesnt give an error and not send the email. > > so I want to know, > can't send a email using default cake php email component to > gmail account? > is there any configurations to send the mail in somewhere?(like > php.ini) You'll have to show us the code you wrote. You should also tell us what OS you're using. > I used following versions! > > Apache Friends XAMPP (Basis Package) version 1.7.2 > Apache 2.2.12 (IPV6 enabled) > MySQL 5.1.37 (Community Server) > PHP 5.3.0 + PEAR Why such old versions? Current versions are Apache 2.2.19, MySQL 5.1.57 or 5.5.12, and PHP 5.3.6. -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: can't send a email using default cake php email component
On May 27, 2011, at 00:33, madusanka hettiarachchi wrote: > im new to php. I tried to send a mail using existing code in cake php > mannual. bt it doesnt give an error and not send the email. > > so I want to know, > can't send a email using default cake php email component to > gmail account? > is there any configurations to send the mail in somewhere?(like > php.ini) You'll have to show us the code you wrote. You should also tell us what OS you're using. > I used following versions! > > Apache Friends XAMPP (Basis Package) version 1.7.2 > Apache 2.2.12 (IPV6 enabled) > MySQL 5.1.37 (Community Server) > PHP 5.3.0 + PEAR Why such old versions? Current versions are Apache 2.2.19, MySQL 5.1.57 or 5.5.12, and PHP 5.3.6. -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: can't send a email using default cake php email component
On Fri, May 27, 2011 at 11:03 AM, madusanka hettiarachchi wrote: > hi, > > im new to php. I tried to send a mail using existing code in cake php > mannual. bt it doesnt give an error and not send the email. > > so I want to know, > can't send a email using default cake php email component to > gmail account? > is there any configurations to send the mail in > somewhere?(like php.ini) > > ya we can send easily form gmail account using cakePHP . I also studied form cakePHP manual , I works for me This is my code http://sathia27.wordpress.com/2011/04/18/send-email-using-smtp-using-cakephp/ > I used following versions! > > > -- Regards sathia http://www.sathia27.wordpress.com -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
can't send a email using default cake php email component
hi, im new to php. I tried to send a mail using existing code in cake php mannual. bt it doesnt give an error and not send the email. so I want to know, can't send a email using default cake php email component to gmail account? is there any configurations to send the mail in somewhere?(like php.ini) I used following versions! Apache Friends XAMPP (Basis Package) version 1.7.2 Apache 2.2.12 (IPV6 enabled) MySQL 5.1.37 (Community Server) PHP 5.3.0 + PEAR -- Ganganath Hettiarachchi Faculty of Information Technology UOM -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Redirect problem - blank page, Email component
Hi I have one big problem which drives me crazy. My application is some kind of a database of graphics projects with data screens and comments. In "Show Projects details" view there is an ability to comment the graphic project. And after submitting the comment application sends an email to the author of the project. After that it should redirect to the "Show Projects details" view again but unfortunately there is a problem. The page goes blank. And if I press back on web browser and click refresh the comment shows up. I turn the debug 2 on and there are no errors. Furthermore there is a table with SQL data and above it a proper link where it should redirect. I have Notification component which uses core Email component. In this Notification component I have a method: function send($subject = 'Message', $id, $template, $text = "", $mail = WEBSTUDIO_EMAIL, $private = false) { $this->Email->reset() $this->Email->delivery = 'smtp'; $this->Email->smtpOptions = array( 'port'=>'25', 'timeout'=>'30', 'host' => EMAIL_SMTP_HOST, 'username'=> EMAIL_SMTP_USER, 'password'=> EMAIL_SMTP_PASSWORD ); $this->Email->to = $mail; $this->Email->subject = '[Project '.$id.'] '.$subject; $this->Email->from = EMAIL_NAME.' <'.EMAIL_FROM.'>'; $this->Email->sendAs = 'text'; $this->Email->replyTo = WEBSTUDIO_EMAIL; $this->Email->template = $template; $this->controller->set('id', $id); $this->controller->set('text', $text); $this->controller->set('email', $this->obAuth->user["User"] ['email']); $this->controller->set('user', $this->obAuth->user["User"] ['username']); App::import('Model', 'User'); $User = &new User(); if (!$private) { $emails = $User->findAll('`User`.`id` IN (SELECT user_id FROM users_permissions WHERE user_id != '.$this->obAuth->user["User"] ['id'].' AND permission_id = '.$this->obAuth- >id('COMMENTS_INFO').')', array('DISTINCT `User`.`id`', '`User`.`email`', '`User`.`name`'), null, null, null, 0); foreach($emails as $email) { $this->Email->bcc[] = "{$email['User']['name']} <{$email['User']['email']}>"; } if ($mail != WEBSTUDIO_EMAIL) { $this->Email->bcc[] = WEBSTUDIO_EMAIL; } } if ($this->Email->send()) { $this->Session->setFlash('Wysłano wiadomość.'); $debug = $this->Session->read('Message.email'); $this->controller->log("\n\n*Wysłano wiadomość* \n \n{$debug['message']}", 'email.' . date('Y-m-d')); return true; } else { $this->Session->setFlash('Wystąpił błąd podczas wysyłania wiadomości'); $debug = $this->Session->read('Message.email'); $this->controller->log("\n\n*Nie wysłano wiadomości ".$this->Email- >smtpError, "\n{$debug['message']}", 'email.' . date('Y-m-d')); @mail(ADMIN_EMAIL, env('SERVER_NAME').' Error: email', "Temat: ". $this->Email->subject."\n\nBłąd: ".$this->Email->smtpError); } return false; Usage of this component in my Templates Controller is: $this->Notification->send('Comment', $this->data['Comment'] ['template_id'], 'comment', $orig_comment, $this->data['Comment'] ['author_email']); where as you can see 'comment' is a template of the mail. The content of comment.ctp is: == : http://th.netart.pl/templates/view/, == : I narrowed the problem to this line in the Notification component: $this->Email->template = $template; When I commented it, the redirect method worked properly but the mail was empty. I know that in this situation application has no email template assigned. But even if went back to the previous state and try to erase the content of the comment.ctp nothing has changed. There were no Warning: Cannot modify header information - headers already sent, just the blank page. I do not know why there is a problem with this email template and I have just spent 10 hours to solve this and I didn't find the solution to this. Please help me. 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: Debugging the Email component
It's all well and good, but I have a production system that sometimes refuses to send order confirmation emails out, even though the format of them are identical and the recipient gets other emails. Have spent a disproportionate amount of time trying to locate them but its hard when its a bit random. I'm not blaming the email component - I just wish there was a better way of tracking down those sort of errors. Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 5 Oct 2010, at 18:09, j.blotus wrote: > 99% of the problems I ever had with EmailComponent were an environment > issue! > > On Oct 5, 12:51 pm, Jeremy Burns | Class Outfit > wrote: >> Resolved - but I'm not sure why. >> >> I did some digging around and found this terminal command: >> >> sudo rm /private/var/mail/ >> >> This cleared down my unix mail box on my Mac (which is a bit dramatic >> because it could have had important stuff in it - but I doubt it), but the >> emails immediately began to flow through. >> >> Jeremy Burns >> Class Outfit >> >> jeremybu...@classoutfit.comhttp://www.classoutfit.com >> >> On 5 Oct 2010, at 17:02, Jeremy Burns wrote: >> >> >> >>> I am using the Email component with varying levels of success. A >>> single function that can send a number of emails sometimes works, >>> sometimes fails. And yes, I am using $this->Email->reset(); >> >>> In one case I have two very similar emails that are set up the same: >> >>>$this->Email->reset(); >>>$this->Email->from = 'an-email-address'; >>>$this->Email->to = 'another-email-address'; >>>$this->Email->sendAs = 'html'; >>>$this->Email->template = 'template_name'; >>>$this->Email->subject = 'A subject'; >>>/* $this->Email->delivery = 'debug'; - this outputs a reasonable >>> looking email text */ >> >>>$this->Email->send(); >> >>> I can't see any material difference between the two; the templates >>> contain plain old html, the email addresses are valid (and sometimes >>> exactly the same on both emails) and nothing else looks odd. >> >>> Looping through the code I can see that Cake thinks all emails have >>> been sent. One of the emails always arrives, the other does not. >> >>> How do I go about debugging this and finding out why some emails work, >>> and others don't? >> >>> Check out the new CakePHP Questions sitehttp://cakeqs.organd 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 >>> athttp://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 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: Debugging the Email component
99% of the problems I ever had with EmailComponent were an environment issue! On Oct 5, 12:51 pm, Jeremy Burns | Class Outfit wrote: > Resolved - but I'm not sure why. > > I did some digging around and found this terminal command: > > sudo rm /private/var/mail/ > > This cleared down my unix mail box on my Mac (which is a bit dramatic because > it could have had important stuff in it - but I doubt it), but the emails > immediately began to flow through. > > Jeremy Burns > Class Outfit > > jeremybu...@classoutfit.comhttp://www.classoutfit.com > > On 5 Oct 2010, at 17:02, Jeremy Burns wrote: > > > > > I am using the Email component with varying levels of success. A > > single function that can send a number of emails sometimes works, > > sometimes fails. And yes, I am using $this->Email->reset(); > > > In one case I have two very similar emails that are set up the same: > > > $this->Email->reset(); > > $this->Email->from = 'an-email-address'; > > $this->Email->to = 'another-email-address'; > > $this->Email->sendAs = 'html'; > > $this->Email->template = 'template_name'; > > $this->Email->subject = 'A subject'; > > /* $this->Email->delivery = 'debug'; - this outputs a reasonable > > looking email text */ > > > $this->Email->send(); > > > I can't see any material difference between the two; the templates > > contain plain old html, the email addresses are valid (and sometimes > > exactly the same on both emails) and nothing else looks odd. > > > Looping through the code I can see that Cake thinks all emails have > > been sent. One of the emails always arrives, the other does not. > > > How do I go about debugging this and finding out why some emails work, > > and others don't? > > > Check out the new CakePHP Questions sitehttp://cakeqs.organd 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 > > athttp://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: Debugging the Email component
Resolved - but I'm not sure why. I did some digging around and found this terminal command: sudo rm /private/var/mail/ This cleared down my unix mail box on my Mac (which is a bit dramatic because it could have had important stuff in it - but I doubt it), but the emails immediately began to flow through. Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 5 Oct 2010, at 17:02, Jeremy Burns wrote: > I am using the Email component with varying levels of success. A > single function that can send a number of emails sometimes works, > sometimes fails. And yes, I am using $this->Email->reset(); > > In one case I have two very similar emails that are set up the same: > > $this->Email->reset(); > $this->Email->from = 'an-email-address'; > $this->Email->to = 'another-email-address'; > $this->Email->sendAs = 'html'; > $this->Email->template = 'template_name'; > $this->Email->subject = 'A subject'; > /* $this->Email->delivery = 'debug'; - this outputs a reasonable > looking email text */ > > $this->Email->send(); > > I can't see any material difference between the two; the templates > contain plain old html, the email addresses are valid (and sometimes > exactly the same on both emails) and nothing else looks odd. > > Looping through the code I can see that Cake thinks all emails have > been sent. One of the emails always arrives, the other does not. > > How do I go about debugging this and finding out why some emails work, > and others don't? > > 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 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
Debugging the Email component
I am using the Email component with varying levels of success. A single function that can send a number of emails sometimes works, sometimes fails. And yes, I am using $this->Email->reset(); In one case I have two very similar emails that are set up the same: $this->Email->reset(); $this->Email->from = 'an-email-address'; $this->Email->to = 'another-email-address'; $this->Email->sendAs = 'html'; $this->Email->template = 'template_name'; $this->Email->subject = 'A subject'; /* $this->Email->delivery = 'debug'; - this outputs a reasonable looking email text */ $this->Email->send(); I can't see any material difference between the two; the templates contain plain old html, the email addresses are valid (and sometimes exactly the same on both emails) and nothing else looks odd. Looping through the code I can see that Cake thinks all emails have been sent. One of the emails always arrives, the other does not. How do I go about debugging this and finding out why some emails work, and others don't? 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?
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
sending mail through Gmail SMTP by Email component?
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
Re: can't send gmail by using Email component
gmail requires some security stuff, that the default cakePHP email component does not support. I'm successfully using swiftmailer and the SwiftMailer Component by Gediminas Morkevicius to send mails via GMail. On 21 Sep., 17:18, pang wrote: > I follow the configuration in the cakhphp > tutorialhttp://book.cakephp.org/view/1290/Sending-A-Message-Using-SMTP, > to set smtp options like follows: > > /* SMTP Options */ > $this->Email->smtpOptions = array( > 'port'=>'465', > 'timeout'=>'30', > 'host' => 'ssl://smtp.gmail.com', > 'username'=>'your_usern...@gmail.com', > 'password'=>'your_gmail_password', > ); > > I also try to change port number to 587, it still doesn't work, what > else should I do? 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
can't send gmail by using Email component
I follow the configuration in the cakhphp tutorial http://book.cakephp.org/view/1290/Sending-A-Message-Using-SMTP, to set smtp options like follows: /* SMTP Options */ $this->Email->smtpOptions = array( 'port'=>'465', 'timeout'=>'30', 'host' => 'ssl://smtp.gmail.com', 'username'=>'your_usern...@gmail.com', 'password'=>'your_gmail_password', ); I also try to change port number to 587, it still doesn't work, what else should I do? 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: email component and special chars
like $this->Email->to = $username .'<' . $email .'>'; works with outlook smtp etc but the email component aborts with any non a-z chars... maybe a bug? On 1 Sep., 00:05, euromark wrote: > i just stumpled on that after checking the error logs > seems it only happens occasionally > > if a username contains some char like < @ [ etc > the email will not be send to $username <$email> > it aborts without any error at all > > is this from smtp protocol? > or does the component do that? > what chars are expicitly not allowed in the name part? > > i though about using Inflector::slug() on the username prior to > passing in to the email component > but that would change all äöüé etc (which are valid) as well > > any ideas? 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: email component and special chars
like $this->Email->to = $username . '<' . $email '>'; i thought i can put whatever i want in $username here and it works in outlook etc. the email gets through only the email component aborts... maybe a bug? On 1 Sep., 00:05, euromark wrote: > i just stumpled on that after checking the error logs > seems it only happens occasionally > > if a username contains some char like < @ [ etc > the email will not be send to $username <$email> > it aborts without any error at all > > is this from smtp protocol? > or does the component do that? > what chars are expicitly not allowed in the name part? > > i though about using Inflector::slug() on the username prior to > passing in to the email component > but that would change all äöüé etc (which are valid) as well > > any ideas? 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
email component and special chars
i just stumpled on that after checking the error logs seems it only happens occasionally if a username contains some char like < @ [ etc the email will not be send to $username <$email> it aborts without any error at all is this from smtp protocol? or does the component do that? what chars are expicitly not allowed in the name part? i though about using Inflector::slug() on the username prior to passing in to the email component but that would change all äöüé etc (which are valid) as well any ideas? 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: Email Component
On Thu, Jul 29, 2010 at 10:09 AM, AD7six wrote: > >> and no the >> ones in views/email directory > > where did you read it would look in views/email? Perhaps huoxito meant views/layouts/email/ 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: Email Component
On Jul 29, 3:25 pm, huoxito wrote: > Yes i got that, but what i found strange is that the cakebook says we > have to create 'html' and 'text' in both views and elements > directory Where does it say that ( I think you're misreading something ). > > besides why would i use both 'text' and 'html' if one of them is > enough to customize my emails... If you plan on sending out text-only emails that's a fair argument. if you're thinking of sending out html-only emails well ... > > and when we set the template using the Email Component it seems to > refer to the files in the views/elements/email directory Exactly like it says on the tin (in the book) :) > and no the > ones in views/email directory where did you read it would look in views/email? rgds, AD 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: Email Component
Yes i got that, but what i found strange is that the cakebook says we have to create 'html' and 'text' in both views and elements directory besides why would i use both 'text' and 'html' if one of them is enough to customize my emails... and when we set the template using the Email Component it seems to refer to the files in the views/elements/email directory and no the ones in views/email directory On 29 jul, 04:13, Louie Miranda wrote: > Try this.. > > class AccountsController extends AppController > { > var $name = "Accounts"; > var $components = array('Email'); > > function email() { > $this->Email->from = 'Somebody '; > $this->Email->to = 'Louie Miranda '; > $this->Email->subject = 'Test / Developer Code PHP CAKEPHP'; > $this->Email->send('Hello message body from LOUIE MIRANDA > CAKEPHP!'); > } > > } > > It's actually very simple. Just add the email component and create a > function. > > -- > Louie Miranda > - Email: lmira...@gmail.com > - Web:http://www.louiemiranda.com > > > > On Thu, Jul 29, 2010 at 10:41 AM, huoxito wrote: > > Am I the only one who finds the Email Component doc, > >http://book.cakephp.org/view/1286/Sending-a-basic-message, really > > weird? > > > I mean i'll have to try out a lot of things here to understand how it > > works... > > > Check out the new CakePHP Questions sitehttp://cakeqs.organd 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: Email Component
Try this.. class AccountsController extends AppController { var $name = "Accounts"; var $components = array('Email'); function email() { $this->Email->from= 'Somebody '; $this->Email->to = 'Louie Miranda '; $this->Email->subject = 'Test / Developer Code PHP CAKEPHP'; $this->Email->send('Hello message body from LOUIE MIRANDA CAKEPHP!'); } } It's actually very simple. Just add the email component and create a function. -- Louie Miranda - Email: lmira...@gmail.com - Web: http://www.louiemiranda.com On Thu, Jul 29, 2010 at 10:41 AM, huoxito wrote: > Am I the only one who finds the Email Component doc, > http://book.cakephp.org/view/1286/Sending-a-basic-message, really > weird? > > I mean i'll have to try out a lot of things here to understand how it > works... > > 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
Email Component
Am I the only one who finds the Email Component doc, http://book.cakephp.org/view/1286/Sending-a-basic-message, really weird? I mean i'll have to try out a lot of things here to understand how it works... 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: Email Component
I played around a little more and found a few things online that got me pointed in the right direction however things still aren't working correctly. $this->email->from = 'Some Name ' // email does not send at all $this->email->from = 'Some Name ' (email all lowercase) // ignores both email and name and sends using server address $this->email->from = 'Some Name' // sends okay but is obviously missing the email address On Tue, Jul 20, 2010 at 5:36 PM, Ed Propsner wrote: > I recently changed names on one of my sites and moved the entire site to a > different dir on the server. > > Everything went smooth enough except now I'm unable to send emails. > Mail sends ok using PHP mail() function but not when using the email > component. > The email is NOT set up for SMTP. > > Am I overlooking something here? I'm not sure what the problem is. > 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: Email Component
Have you tried clearing the cache (/app/tmp/cache/...and sub folders)? Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 21 Jul 2010, at 03:06, Hugo M wrote: > Mm... if you have Linux you can check in /etc/php5/apache2/php.ini the > sendmail configuration and the sendmail path. Maybe is put as a relative path > (I don't see a good reason to do that but... who knows :P) > > 2010/7/20 Ed Propsner > Nope, nothing. I originally used it right out of the box and I didn't have to > change a thing. > > It was working perfectly until I changed to a new dir on my server. It really > makes no sense. > > > On Tue, Jul 20, 2010 at 8:49 PM, Hugo M wrote: > Strange, do you have any configuration related with Email component? if I can > send mail with mail() I can send with the component :S > > 2010/7/20 Ed Propsner > I recently changed names on one of my sites and moved the entire site to a > different dir on the server. > > Everything went smooth enough except now I'm unable to send emails. > Mail sends ok using PHP mail() function but not when using the email > component. > The email is NOT set up for SMTP. > > Am I overlooking something here? I'm not sure what the problem is. > > 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 > > > 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 > > > 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 > > > 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 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: Email Component
Mm... if you have Linux you can check in /etc/php5/apache2/php.ini the sendmail configuration and the sendmail path. Maybe is put as a relative path (I don't see a good reason to do that but... who knows :P) 2010/7/20 Ed Propsner > Nope, nothing. I originally used it right out of the box and I didn't have > to change a thing. > > It was working perfectly until I changed to a new dir on my server. It > really makes no sense. > > > On Tue, Jul 20, 2010 at 8:49 PM, Hugo M wrote: > >> Strange, do you have any configuration related with Email component? if I >> can send mail with mail() I can send with the component :S >> >> 2010/7/20 Ed Propsner >> >>> I recently changed names on one of my sites and moved the entire site to >>> a different dir on the server. >>> >>> Everything went smooth enough except now I'm unable to send emails. >>> Mail sends ok using PHP mail() function but not when using the email >>> component. >>> The email is NOT set up for SMTP. >>> >>> Am I overlooking something here? I'm not sure what the problem is. >>> >>> 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.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.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: Email Component
Nope, nothing. I originally used it right out of the box and I didn't have to change a thing. It was working perfectly until I changed to a new dir on my server. It really makes no sense. On Tue, Jul 20, 2010 at 8:49 PM, Hugo M wrote: > Strange, do you have any configuration related with Email component? if I > can send mail with mail() I can send with the component :S > > 2010/7/20 Ed Propsner > >> I recently changed names on one of my sites and moved the entire site to a >> different dir on the server. >> >> Everything went smooth enough except now I'm unable to send emails. >> Mail sends ok using PHP mail() function but not when using the email >> component. >> The email is NOT set up for SMTP. >> >> Am I overlooking something here? I'm not sure what the problem is. >> >> 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.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: Email Component
Strange, do you have any configuration related with Email component? if I can send mail with mail() I can send with the component :S 2010/7/20 Ed Propsner > I recently changed names on one of my sites and moved the entire site to a > different dir on the server. > > Everything went smooth enough except now I'm unable to send emails. > Mail sends ok using PHP mail() function but not when using the email > component. > The email is NOT set up for SMTP. > > Am I overlooking something here? I'm not sure what the problem is. > > 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
Email Component
I recently changed names on one of my sites and moved the entire site to a different dir on the server. Everything went smooth enough except now I'm unable to send emails. Mail sends ok using PHP mail() function but not when using the email component. The email is NOT set up for SMTP. Am I overlooking something here? I'm not sure what the problem is. 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: cakephp email component
It is so hard to help you with questions like this when we don't know what's going wrong. Can you be more specific? Can you paste an error message? Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 19 Jul 2010, at 08:12, fadhli - wrote: > class MessagesController extends AppController { > > var $name = 'Messages'; > var $components = array('Email'); > > function _sendNewMessage($id) { > $message = $this->Message->read(null,$id); > > $this->Email->to = $message['Client']['email']; > $this->Email->bcc = array('fad...@c-artsmag.com'); > $this->Email->subject = 'Welcome to our really cool thing'; > > $this->Email->replyTo = 'supp...@example.com'; > $this->Email->from = 'Cool Web App '; > > $this->Email->template = 'simple_message'; // note no '.ctp' > //Send as 'html', 'text' or 'both' (default is 'text') > $this->Email->sendAs = 'both'; // because we like to send > pretty mail > > //Set view variables as normal > $this->set('message', $message); > //Do not pass any args to send() > $this->Email->send(); > } > > > ... > ... > ... > > function add() { > if (!empty($this->data)) { > $this->Message->create(); > if ($this->Message->save($this->data)) { > $this->_sendNewMessage( $this->Message->id ); > > $this->Session->setFlash(sprintf(__('The %s has > been saved', true), 'message')); > $this->redirect(array('action' => 'index')); > } else { > $this->Session->setFlash(sprintf(__('The %s > could not be saved. Please, try again.', true), 'message')); > > } > } > $users = $this->Message->User->find('list', > array('fields'=>array('User.id', 'User.username'))); > $clients = $this->Message->Client->find('list'); > > $this->set(compact('users', 'clients')); > } > ... > ... > ... > } > > ?> > > > > > I use the cakephp 1.3.0 and yahoo web hosting. > i write the code above to send email, but it does not work properly. anyone > can help me so this method works well. > > 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 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
cakephp email component
Message->read(null,$id); $this->Email->to = $message['Client']['email']; $this->Email->bcc = array('fad...@c-artsmag.com'); $this->Email->subject = 'Welcome to our really cool thing'; $this->Email->replyTo = 'supp...@example.com'; $this->Email->from = 'Cool Web App '; $this->Email->template = 'simple_message'; // note no '.ctp' //Send as 'html', 'text' or 'both' (default is 'text') $this->Email->sendAs = 'both'; // because we like to send pretty mail //Set view variables as normal $this->set('message', $message); //Do not pass any args to send() $this->Email->send(); } ... ... ... function add() { if (!empty($this->data)) { $this->Message->create(); if ($this->Message->save($this->data)) { $this->_sendNewMessage( $this->Message->id ); $this->Session->setFlash(sprintf(__('The %s has been saved', true), 'message')); $this->redirect(array('action' => 'index')); } else { $this->Session->setFlash(sprintf(__('The %s could not be saved. Please, try again.', true), 'message')); } } $users = $this->Message->User->find('list', array('fields'=>array('User.id', 'User.username'))); $clients = $this->Message->Client->find('list'); $this->set(compact('users', 'clients')); } ... ... ... } ?> I use the cakephp 1.3.0 and yahoo web hosting. i write the code above to send email, but it does not work properly. anyone can help me so this method works well. 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: Email Component - Double Send
Have you confirmed that your data are correct? That is, that you don't have the same email address twice in the $mail array that you use! You could for example log each email address that your are sending an email to. Enjoy, John On Jun 17, 10:30 pm, alex wrote: > Hi, I have used this component with this following snippet code: > > foreach( $list as $mail ){ > $this->Email->subject = 'HermesList'; > $this->Email->replyTo = 'i...@alex.it'; > $this->Email->from = 'Alex '; > $this->Email->to = $mail['mails']['mail']; > > $this->Email->delivery = 'smtp'; > $this->Email->template = > 'email/html/Template/template'; > $this->Email->sendAs = 'html'; > $this->set('titolo', > $data['Content']['titolo']); > $this->set('descrizione', > $data['Content']['descrizione']); > $this->set('mail', $mail['mails']['mail']); > $this->set('image', $data['Content']['link']); > $this->Email->send(); > $this->Email->reset(); > } > > It works fine but some emails are sent twice!!! > Thanks 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
Email Component - Double Send
Hi, I have used this component with this following snippet code: foreach( $list as $mail ){ $this->Email->subject = 'HermesList'; $this->Email->replyTo = 'i...@alex.it'; $this->Email->from = 'Alex '; $this->Email->to = $mail['mails']['mail']; $this->Email->delivery = 'smtp'; $this->Email->template = 'email/html/Template/template'; $this->Email->sendAs = 'html'; $this->set('titolo', $data['Content']['titolo']); $this->set('descrizione', $data['Content']['descrizione']); $this->set('mail', $mail['mails']['mail']); $this->set('image', $data['Content']['link']); $this->Email->send(); $this->Email->reset(); } It works fine but some emails are sent twice!!! Thanks 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: Email component
It looks like I have the same setup as you have, an email in a variable and a default email as a constant. My code is like this: [code] define('DEFAULT_TO_ADDRESS',''); ... $this->Email->to = (APPLICATION_STATE == APPLICATION_STATE_PROD) ? '<'. $emailAddress.'>' : DEFAULT_TO_ADDRESS; [/code] What happens in my code is that I check for whether or not I am in a production environment. If I am, then I use the email in the variable, else the email in the constant. This works for me, so take a look at your code, make whatever changes are necessary and try again. Observe that I encloses my email addresses in "<" and ">". Then tell us about it! :) Enjoy, John On Jun 16, 8:19 pm, Daniel wrote: > my bad, that's working: > $to = 'exampleem...@domain.com'; > $this->Email->to = $to; > > ..typo mistake. > > but when i include in my controller a config.php file: > define('EMAIL', 'exam...@domain.com'); > ?> > > and try to use EMAIL to set the destination, it doesn't work :-(. > i have tried to set a $email variable with EMAIL and print it out in > view, > it shows the correct adddress, but when i use the EMAIL to set the > destination address for Email componnent it doesn't work. > [snip] 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: Email component
On Wed, Jun 16, 2010 at 2:19 PM, Daniel wrote: > (..) > but when i include in my controller a config.php file: > define('EMAIL', 'exam...@domain.com'); > ?> > > and try to use EMAIL to set the destination, it doesn't work :-(. Not sure, but maybe you should try this: !defined('EMAIL') && define('EMAIL', 'exam...@domain.com'); Or even define constants in your bootstrap.php. Atts. -- MARCELO F ANDRADE Belem, Amazonia, Brazil "I took the red pill" 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: Email component
my bad, that's working: $to = 'exampleem...@domain.com'; $this->Email->to = $to; ..typo mistake. but when i include in my controller a config.php file: and try to use EMAIL to set the destination, it doesn't work :-(. i have tried to set a $email variable with EMAIL and print it out in view, it shows the correct adddress, but when i use the EMAIL to set the destination address for Email componnent it doesn't work. On 16 Cze, 12:59, Dilip Godhani wrote: > Hello > Use this > its work may ne > > $to = 'exampleem...@domain.com'; > $this->Email->to = $to; > > Best luck > BYe BYe > > > > > > On Wed, Jun 16, 2010 at 12:25 AM, Daniel Gbur wrote: > > hi all, > > > i have a problem with Email compnent. > > when i set the destination adress with a string: > > > $this->Email->to = 'exampleem...@domain.com'; > > > it's working ok, but when i try to set the destination adress with a > > variable: > > > $to = 'exampleem...@domain.com'; > > $this->Email->to = $to; > > > it doesn't work. > > > i can't find the reason why it's not working. > > maybe someone have any idea? > > > Check out the new CakePHP Questions sitehttp://cakeqs.organd 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 > > -- > Dilip Godhani > Jr Software Developer, Entourage Solutions > e-mail: di...@entouragesolutions.com > dilip.godh...@gmail.com > Web.:www.entouragesolutions.com > m. 9913822582 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: Email Component and Model
Thanks. Will do. On Wed, Jun 16, 2010 at 5:21 PM, Dr. Loboto wrote: > Your should rename model. > > On Jun 16, 7:39 pm, Andrei Mita wrote: > > How can I rename the E-mail component? > > > > > > > > On Wed, Jun 16, 2010 at 3:26 PM, jodator wrote: > > > I had the same issue ;) Fastest: rename model or component. > > > > > Or you could try use email model in controller like this (I havn't > > > tested it before): > > > > > $uses = array('MyOtherModel'); > > > > > ... > > > function mail_me($id) { > > > $emailModel = ClassRegistry::init('Model'); > > > $emailField = $emailModel->find('email', array('id' => 666) ); > > > > > // or > > > > > $emailField = ClassRegistry::init('Model')->find('email', array('id' > > > => 666) ); > > > > > $this->email->to = emailField; > > > > > //I don't know how to dinamically load components > > > > > } > > > > > On Jun 16, 1:20 pm, Andrei Mita wrote: > > > > Hello, > > > > > > I have a model Email that conflicts with the component when I try to > send > > > > emails. I have researched the group and saw that other people had the > > > same > > > > issue but did not find a solution. Is there a standard way to deal > with > > > the > > > > problem or do I have to rename my model, controller and view folder? > > > > > > Thanks, > > > > Andrei > > > > > Check out the new CakePHP Questions sitehttp://cakeqs.organd 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 > > 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: Email Component and Model
Your should rename model. On Jun 16, 7:39 pm, Andrei Mita wrote: > How can I rename the E-mail component? > > > > On Wed, Jun 16, 2010 at 3:26 PM, jodator wrote: > > I had the same issue ;) Fastest: rename model or component. > > > Or you could try use email model in controller like this (I havn't > > tested it before): > > > $uses = array('MyOtherModel'); > > > ... > > function mail_me($id) { > > $emailModel = ClassRegistry::init('Model'); > > $emailField = $emailModel->find('email', array('id' => 666) ); > > > // or > > > $emailField = ClassRegistry::init('Model')->find('email', array('id' > > => 666) ); > > > $this->email->to = emailField; > > > //I don't know how to dinamically load components > > > } > > > On Jun 16, 1:20 pm, Andrei Mita wrote: > > > Hello, > > > > I have a model Email that conflicts with the component when I try to send > > > emails. I have researched the group and saw that other people had the > > same > > > issue but did not find a solution. Is there a standard way to deal with > > the > > > problem or do I have to rename my model, controller and view folder? > > > > Thanks, > > > Andrei > > > Check out the new CakePHP Questions sitehttp://cakeqs.organd 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 > om>For 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: Email Component and Model
How can I rename the E-mail component? On Wed, Jun 16, 2010 at 3:26 PM, jodator wrote: > I had the same issue ;) Fastest: rename model or component. > > Or you could try use email model in controller like this (I havn't > tested it before): > > $uses = array('MyOtherModel'); > > ... > function mail_me($id) { > $emailModel = ClassRegistry::init('Model'); > $emailField = $emailModel->find('email', array('id' => 666) ); > > // or > > $emailField = ClassRegistry::init('Model')->find('email', array('id' > => 666) ); > > $this->email->to = emailField; > > //I don't know how to dinamically load components > > } > > > On Jun 16, 1:20 pm, Andrei Mita wrote: > > Hello, > > > > I have a model Email that conflicts with the component when I try to send > > emails. I have researched the group and saw that other people had the > same > > issue but did not find a solution. Is there a standard way to deal with > the > > problem or do I have to rename my model, controller and view folder? > > > > Thanks, > > Andrei > > 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: Email Component and Model
I had the same issue ;) Fastest: rename model or component. Or you could try use email model in controller like this (I havn't tested it before): $uses = array('MyOtherModel'); ... function mail_me($id) { $emailModel = ClassRegistry::init('Model'); $emailField = $emailModel->find('email', array('id' => 666) ); // or $emailField = ClassRegistry::init('Model')->find('email', array('id' => 666) ); $this->email->to = emailField; //I don't know how to dinamically load components } On Jun 16, 1:20 pm, Andrei Mita wrote: > Hello, > > I have a model Email that conflicts with the component when I try to send > emails. I have researched the group and saw that other people had the same > issue but did not find a solution. Is there a standard way to deal with the > problem or do I have to rename my model, controller and view folder? > > Thanks, > Andrei 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
Email Component and Model
Hello, I have a model Email that conflicts with the component when I try to send emails. I have researched the group and saw that other people had the same issue but did not find a solution. Is there a standard way to deal with the problem or do I have to rename my model, controller and view folder? Thanks, Andrei 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: Email component
Hello Use this its work may ne $to = 'exampleem...@domain.com'; $this->Email->to = $to; Best luck BYe BYe On Wed, Jun 16, 2010 at 12:25 AM, Daniel Gbur wrote: > hi all, > > i have a problem with Email compnent. > when i set the destination adress with a string: > > $this->Email->to = 'exampleem...@domain.com'; > > it's working ok, but when i try to set the destination adress with a > variable: > > $to = 'exampleem...@domain.com'; > $this->Email->to = $to; > > it doesn't work. > > i can't find the reason why it's not working. > maybe someone have any idea? > > 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 > -- Dilip Godhani Jr Software Developer, Entourage Solutions e-mail: di...@entouragesolutions.com dilip.godh...@gmail.com Web.: www.entouragesolutions.com m. 9913822582 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
Email component
hi all, i have a problem with Email compnent. when i set the destination adress with a string: $this->Email->to = 'exampleem...@domain.com'; it's working ok, but when i try to set the destination adress with a variable: $to = 'exampleem...@domain.com'; $this->Email->to = $to; it doesn't work. i can't find the reason why it's not working. maybe someone have any idea? 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: email component - sending mail via smtp fails on own server!
I would suspect that or php/apche may need to be rebuilt to include mail On 6/3/10, euromark wrote: > as i mentioned above, php mails via mail() are working both cake and > pure php based > > using my "good old" phpmailer from the days before cake i get a > similar error > with > $mail->SMTPAuth = true; > and > $mail->IsSMTP(); > like this: > > SMTP -> ERROR: Failed to connect to server: Invalid argument (22) > SMTP Error: Could not connect to SMTP host. (bool)FALSE > > > if i dont use $mail->IsSMTP(); the email gets successfully sent (via > mail() - which of course works) > > it might actually be something connected to the smtp server... > > > > On 4 Jun., 00:01, Jonathon Musters wrote: >> Try a simple test >> >> Using php only not cake. Try sending an email >> If it works cake issue if not server config >> >> Let us know >> Jonathon >> >> On 6/3/10, euromark wrote: >> >> > i have quite a strange problem with the email component >> > it never failed me before >> >> > but on the new server i installed an own exim4 mail server with imap/ >> > pop/smtp >> > well, >> > - sending mails wie mail() works, >> > - sending mails via smtp from outside (like thunderbird email program) >> > works >> > - sending mails wie cake email component to myself (own domain) works >> > as well >> >> > but >> > - sending mails to other providers (gmx, web, ...) always returns >> > FALSE >> > i debugged it and found out after getting 503, it does authenticate >> > (line 816 ff): >> > $authRequired = $this->_smtpSend('AUTH LOGIN', '334|503'); >> >> > the next statement returns 250 (line 829 ff) - thats fine too: >> > if (!$this->_smtpSend('MAIL FROM: ' . $this->_formatAddress($this- >> >>from, true))) { >> >> > but the next one fails (if its a foreign domain) (line 839 ff): >> > if (!$this->_smtpSend('RCPT TO: ' . $this->_formatAddress($to, >> > true))) { >> >> > it just returns an empty string (which of course results in "return >> > false") >> >> > the foreign email addresses are valid and this is my exim4 error log: >> >> > 2010-06-03 22:45:10 H=my.domain.de (www.domain.de) [83.xxx.xx.102] >> > F= rejected RCPT : relay not >> > permitted >> > 2010-06-03 22:45:10 unexpected disconnection while reading SMTP >> > command from my.domain.de (www.domain.de) [83.xxx.xx.102] >> >> > exim4 is on default - no modifications so far >> > and - as i stated - its working if i connect via thunderbird mail >> > program. so the smtp server might not be responsible. >> > is it really the cake component which fails? >> >> > version: >> > cake1.3 head >> >> > i am really clueless whats going on here, why smtp does not work. any >> > ideas? that would save my day. thx >> >> > Check out the new CakePHP Questions sitehttp://cakeqs.organd 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 > > 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 > 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: email component - sending mail via smtp fails on own server!
as i mentioned above, php mails via mail() are working both cake and pure php based using my "good old" phpmailer from the days before cake i get a similar error with $mail->SMTPAuth = true; and $mail->IsSMTP(); like this: SMTP -> ERROR: Failed to connect to server: Invalid argument (22) SMTP Error: Could not connect to SMTP host. (bool)FALSE if i dont use $mail->IsSMTP(); the email gets successfully sent (via mail() - which of course works) it might actually be something connected to the smtp server... On 4 Jun., 00:01, Jonathon Musters wrote: > Try a simple test > > Using php only not cake. Try sending an email > If it works cake issue if not server config > > Let us know > Jonathon > > On 6/3/10, euromark wrote: > > > i have quite a strange problem with the email component > > it never failed me before > > > but on the new server i installed an own exim4 mail server with imap/ > > pop/smtp > > well, > > - sending mails wie mail() works, > > - sending mails via smtp from outside (like thunderbird email program) > > works > > - sending mails wie cake email component to myself (own domain) works > > as well > > > but > > - sending mails to other providers (gmx, web, ...) always returns > > FALSE > > i debugged it and found out after getting 503, it does authenticate > > (line 816 ff): > > $authRequired = $this->_smtpSend('AUTH LOGIN', '334|503'); > > > the next statement returns 250 (line 829 ff) - thats fine too: > > if (!$this->_smtpSend('MAIL FROM: ' . $this->_formatAddress($this- > >>from, true))) { > > > but the next one fails (if its a foreign domain) (line 839 ff): > > if (!$this->_smtpSend('RCPT TO: ' . $this->_formatAddress($to, > > true))) { > > > it just returns an empty string (which of course results in "return > > false") > > > the foreign email addresses are valid and this is my exim4 error log: > > > 2010-06-03 22:45:10 H=my.domain.de (www.domain.de) [83.xxx.xx.102] > > F= rejected RCPT : relay not > > permitted > > 2010-06-03 22:45:10 unexpected disconnection while reading SMTP > > command from my.domain.de (www.domain.de) [83.xxx.xx.102] > > > exim4 is on default - no modifications so far > > and - as i stated - its working if i connect via thunderbird mail > > program. so the smtp server might not be responsible. > > is it really the cake component which fails? > > > version: > > cake1.3 head > > > i am really clueless whats going on here, why smtp does not work. any > > ideas? that would save my day. thx > > > Check out the new CakePHP Questions sitehttp://cakeqs.organd 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 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: email component - sending mail via smtp fails on own server!
Try a simple test Using php only not cake. Try sending an email If it works cake issue if not server config Let us know Jonathon On 6/3/10, euromark wrote: > i have quite a strange problem with the email component > it never failed me before > > but on the new server i installed an own exim4 mail server with imap/ > pop/smtp > well, > - sending mails wie mail() works, > - sending mails via smtp from outside (like thunderbird email program) > works > - sending mails wie cake email component to myself (own domain) works > as well > > but > - sending mails to other providers (gmx, web, ...) always returns > FALSE > i debugged it and found out after getting 503, it does authenticate > (line 816 ff): > $authRequired = $this->_smtpSend('AUTH LOGIN', '334|503'); > > the next statement returns 250 (line 829 ff) - thats fine too: > if (!$this->_smtpSend('MAIL FROM: ' . $this->_formatAddress($this- >>from, true))) { > > but the next one fails (if its a foreign domain) (line 839 ff): > if (!$this->_smtpSend('RCPT TO: ' . $this->_formatAddress($to, > true))) { > > it just returns an empty string (which of course results in "return > false") > > the foreign email addresses are valid and this is my exim4 error log: > > 2010-06-03 22:45:10 H=my.domain.de (www.domain.de) [83.xxx.xx.102] > F= rejected RCPT : relay not > permitted > 2010-06-03 22:45:10 unexpected disconnection while reading SMTP > command from my.domain.de (www.domain.de) [83.xxx.xx.102] > > exim4 is on default - no modifications so far > and - as i stated - its working if i connect via thunderbird mail > program. so the smtp server might not be responsible. > is it really the cake component which fails? > > version: > cake1.3 head > > i am really clueless whats going on here, why smtp does not work. any > ideas? that would save my day. thx > > 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 > 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
email component - sending mail via smtp fails on own server!
i have quite a strange problem with the email component it never failed me before but on the new server i installed an own exim4 mail server with imap/ pop/smtp well, - sending mails wie mail() works, - sending mails via smtp from outside (like thunderbird email program) works - sending mails wie cake email component to myself (own domain) works as well but - sending mails to other providers (gmx, web, ...) always returns FALSE i debugged it and found out after getting 503, it does authenticate (line 816 ff): $authRequired = $this->_smtpSend('AUTH LOGIN', '334|503'); the next statement returns 250 (line 829 ff) - thats fine too: if (!$this->_smtpSend('MAIL FROM: ' . $this->_formatAddress($this- >from, true))) { but the next one fails (if its a foreign domain) (line 839 ff): if (!$this->_smtpSend('RCPT TO: ' . $this->_formatAddress($to, true))) { it just returns an empty string (which of course results in "return false") the foreign email addresses are valid and this is my exim4 error log: 2010-06-03 22:45:10 H=my.domain.de (www.domain.de) [83.xxx.xx.102] F= rejected RCPT : relay not permitted 2010-06-03 22:45:10 unexpected disconnection while reading SMTP command from my.domain.de (www.domain.de) [83.xxx.xx.102] exim4 is on default - no modifications so far and - as i stated - its working if i connect via thunderbird mail program. so the smtp server might not be responsible. is it really the cake component which fails? version: cake1.3 head i am really clueless whats going on here, why smtp does not work. any ideas? that would save my day. thx 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: Shell: Email component breaks HTML template
How are you calling it in the shell? Keep in mind the Email Component will need access to a controller if you plan on setting variables to give to the view template. Which may be why you're seeing the strange results via shell. Nick On Apr 26, 5:05 am, weckmann wrote: > Hi, > > I am using the email component for sending (themed) HTML emails... > > This works fine as long as I am doing this in "normal" web application > mode. > > But when I am doing the very same thing inside a Cake Shell task, my > template somehow gets messed up. > > Two problems occur: > > 1. More than 70 characters without a blank inbetween get splitted by a > line-break, which can break the HTML if the line-break comes at an > unfortunate place.. > > 2. When I am html-coding an email link like href="mailto:i...@aaa.com";>, it removes the part: > "to:i...@aaa.com">"... leaving the HTML broken again... > > The strange thing is that this only happens when using a shell... > The very same template using the same email component (Cake core) > works fine in normal web applications. > > Any help? > Thanks! > > Check out the new CakePHP Questions sitehttp://cakeqs.organd 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 > athttp://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
Shell: Email component breaks HTML template
Hi, I am using the email component for sending (themed) HTML emails... This works fine as long as I am doing this in "normal" web application mode. But when I am doing the very same thing inside a Cake Shell task, my template somehow gets messed up. Two problems occur: 1. More than 70 characters without a blank inbetween get splitted by a line-break, which can break the HTML if the line-break comes at an unfortunate place.. 2. When I am html-coding an email link like mailto:i...@aaa.com";>, it removes the part: "to:i...@aaa.com">"... leaving the HTML broken again... The strange thing is that this only happens when using a shell... The very same template using the same email component (Cake core) works fine in normal web applications. Any help? Thanks! 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: Email Component: I see html email as source code in Squirrel mail web client
Let your users define whether they wish to receive emails from you in html or plain text. Then it is up to them to change it to the right choice, should their email solution not be able to show the chosen format. If you don't want to do that, then maybe just send a plain text email, that also contains the address of the html version, so that they can see the html version in the browser instead. Should any other have another idea, please enlighten us :) Enjoy, John On Apr 16, 9:26 am, "Prof. No Time" wrote: > When I send Email via the Email Component as "Both" i.e. html and > text. It appears fine in my outlook and also yahoo and I think Gmail > too but when I check it in Squirrel Mail webmail interface, it shows > the text portion first, then the html source code underneath. This is > pretty embarrassing as most of my clients will be checking via > webmail. What can I do to prevent this, please. > > Thank You. > > Check out the new CakePHP Questions sitehttp://cakeqs.organd 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 > athttp://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
Email Component: I see html email as source code in Squirrel mail web client
When I send Email via the Email Component as "Both" i.e. html and text. It appears fine in my outlook and also yahoo and I think Gmail too but when I check it in Squirrel Mail webmail interface, it shows the text portion first, then the html source code underneath. This is pretty embarrassing as most of my clients will be checking via webmail. What can I do to prevent this, please. Thank You. 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: problem with email component
Are you developing your app on a windows localhost? Johnathan Iannotti | Director of Technology | Blue Clover : On & Off-line Branding(tm) 210 223.5409 P | 860 877.6676 M | 210 223.2581 F | blueclover.com 425 Soledad Ste. 500 | San Antonio, TX 78205 -Original Message- From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf Of genellern Sent: Friday, February 19, 2010 1:03 PM To: CakePHP Subject: problem with email component Hi. i got a unknown trouble with my app. im trying to set a mail sender but i dont know why it does not send any email, if somebody could help me i'ld really be thankful i put my code below function sendEmail(){ $this->Email->reset(); $this->log(__CLASS__.':'.__FUNCTION__.':'.__LINE__." email",LOG_DEBUG); $this->Email->smtpOptions = array( 'port'=>'465', 'timeout'=>'30', 'host' =>'smtp.gmail.com', 'username'=>'gmail co...@gmail.com', 'password'=>'my password'); $this->Email->sendAs = 'html'; $this->Email->delivery = 'smtp'; $this->Email->to = "gmail co...@gmail.com"; $this->Email->subject = 'Welcome to our CakePHP'; $this->Email->from = 'geneller naranjo '; $this->Email->sendAs = 'html'; if($this->Email->send()){ $this->log(__CLASS__.':'.__FUNCTION__.':'.__LINE__." NOerrores",LOG_DEBUG); } $this->log(__CLASS__.':'.__FUNCTION__.':'.__LINE__." errores",LOG_DEBUG); $this->log($this->Email->smtpError,LOG_DEBUG); } when i look the log, i see this: 2010-02-19 13:55:55 Debug: RegistersController:sendEmail:68 errores that's why i confirm that its not sendind and discard the gmail smtp 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 Homepage: http://www.blueclover.com | Blog: http://www.blue-ings.com | Twitter: http://twitter.com/bluecloverusa | Facebook: http://www.facebook.com/blueclover | YouTube: http://www.youtube.com/user/bluecloverstudios | Join Our Mailing List: http://visitor.constantcontact.com/manage/optin?v=001ti8yLLtrqgo7unTQ7RVsh7BIcda1iEtM - This email transmission, including any attachments thereto, may contain information that is proprietary and confidential. The information is intended only for the use of the individual(s) or entity to whom this email has been addressed. If you are not the intended recipient, or the person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information is strictly prohibited. If you have received this transmission in error, please let us know immediately and delete the email, including any attachments thereto, from your computer. 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
problem with email component
Hi. i got a unknown trouble with my app. im trying to set a mail sender but i dont know why it does not send any email, if somebody could help me i'ld really be thankful i put my code below function sendEmail(){ $this->Email->reset(); $this->log(__CLASS__.':'.__FUNCTION__.':'.__LINE__." email",LOG_DEBUG); $this->Email->smtpOptions = array( 'port'=>'465', 'timeout'=>'30', 'host' =>'smtp.gmail.com', 'username'=>'gmail co...@gmail.com', 'password'=>'my password'); $this->Email->sendAs = 'html'; $this->Email->delivery = 'smtp'; $this->Email->to = "gmail co...@gmail.com"; $this->Email->subject = 'Welcome to our CakePHP'; $this->Email->from = 'geneller naranjo '; $this->Email->sendAs = 'html'; if($this->Email->send()){ $this->log(__CLASS__.':'.__FUNCTION__.':'.__LINE__." NOerrores",LOG_DEBUG); } $this->log(__CLASS__.':'.__FUNCTION__.':'.__LINE__." errores",LOG_DEBUG); $this->log($this->Email->smtpError,LOG_DEBUG); } when i look the log, i see this: 2010-02-19 13:55:55 Debug: RegistersController:sendEmail:68 errores that's why i confirm that its not sendind and discard the gmail smtp 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: Slow Response when using Email Component
One of possible cases - slow SMTP server. 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
Slow Response when using Email Component
I've been having a little bit of a problem with my app when using the Email component. I have a simple "Contact" form with around 8-10 fields. When the user submits the form, the data is stored in the database as well as sending out an email to the admin that a submission has been made. For some reason, the submission of the form takes about 10-15 seconds to be processed. If I remove the $this->Email->send(); is it basically instantaneous. Any ideas? I'll past my controller logic below. function add() { $show_form = true; if (!empty($this->data)) { $this->ClientInquery->create(); if ($this->ClientInquery->save($this->data)) { $this->Session->setFlash('Your inquery has been sent! Someone from our studio should contact you within 1-2 business days.', 'flash_message'); $show_form = false; $this->set('ClientInquery', $this->data); //send email to admin as reminder $this->Email->reset(); $this->Email->to = 'ad...@gmail.com'; $this->Email->subject = "Photography Inquery - " . $this->data['ClientInquery']['name']; $this->Email->template = "photography_inquery"; $this->Email->from = "no-re...@gmail.com"; $this->Email->sendAs = 'html'; // because we like to send pretty mail $this->Email->send(); } else { $this->Session->setFlash('Your inquery has not been sent! Please fix errors.', 'flash_message'); } } $this->set('show_form', $show_form); } As I said. It's very basic and the problem goes away when I simply remove the $this->Email->send(). Any ideas? -Jesse 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: How do I use the email component?
Here you go - this covers the basics. Using the component is actually quite simple: http://www.jeremy-burns.co.uk/2009/12/cakephp-sending-email-using-the-email-component/ On Jan 5, 1:47 am, otisjs01 wrote: > Hello, > > I am new to CakePHP and trying desperately to learn! > > My most recent struggle is with the Email Component. > > I have a contract. When I create the contract, I add a user. When I > save the new contract...for the first time, I want to send an email to > the user in that contract that allows them to click on a link back to > the contract, and then accept or reject the contract. > > How do I send this email? > > The more details I can get, answer-wise, the better. Everything I have > read out there is surprisingly confusing. Do I need to configure smtp > settings? How do I grab the user in the contract after it has been > saved and pass it and the link to the contract on to the email? How do > I know if the email has been sent, without going and checking my email > every single time? > > Here is the code I have in my contracts_controller.php for the email > sending function: (A Contract belongsTo a User, and a User hasMany > Contracts.) > > function _sendContractEmail($id) { > $this->Email->smtpOptions = array( > 'port'=>'465', > 'timeout'=>'30', > 'host'=>'ssl://smtp.gmail.com', > 'username'=>'username', > 'password'=>'password' > ); > $this->Email->delivery = 'smtp'; > $User = $this->Contract->User->read(null,$id); > $this->Email->to = 'jerem...@jeremiahotis.com'; > $this->Email->subject = ''; > $this->Email->replyTo = 'no-re...@goodvaluation.com'; > $this->Email->from = 'Jeremiah Oits > '; > $this->Email->template = 'simple_message'; > $this->Email->sendAs = 'html'; > $this->set('User', $User); > $this->Email->_debug = true; > $this->Email->send('Test Email'); > $this->redirect(array('controller'=>'contracts', > 'action'=>'index')); > } > > Here is the code I have in my contracts_controller.php add() function: > > function add() { > if (!empty($this->data)) { > $this->Contract->create(); > if ($this->Contract->save($this->data)) { > $this->Session->setFlash(__('The Contract has been > saved', true)); > $this->_sendContractEmail($this->Contract->User->id); > } else { > $this->Session->setFlash(__('The Contract could not be > saved. Please, try again.', true)); > } > > And, this is at the top of my contracts_controller.php file after the > $name and $helpers: > > var $components = array('Email'); > > I guess I should point out that I was having trouble with the > template, so to test it, I included the body of the email directly in > the send(), and I specified the to email address rather than using a > variable. Still...nothing! No error, no email. > > Any help would be greatly appreciated! I really have no idea what I am > doing wrong! > > Thanks, > > Jeremiah 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: Email Component Skip Authentification when using SMTP
Hi mate :) resolve is simple: look carefully at host and string => ssl:// $config['Email']['from'] = 'i...@sycyliada.pl'; $config['Email']['fromName'] = 'Zespół Mio Technology'; $config['Email']['fromHeader'] = "{$config['Email']['fromName']} < {$config['Email']['from']}>"; $config['Email']['host'] = 'ssl://gemininova.home.pl'; $config['Email']['port'] = '465'; $config['Email']['username'] = 'username'; $config['Email']['password'] = 'passs'; On 28 Sie, 16:20, Ephigenia wrote: > Hi Guys, > > i just discovered a small bug in the latest cake php email component > class when using SMTP delivery and server does not need any > authentification to be send. > > The email component checks the authentification method by sending > "AUTH LOGIN" > to the server and checks the response code for a valid > authentification status code. But it also should check for a 504 code > wich says that the SMTP Server does not need any authentification at > all: > > $authRequired = $this->__smtpSend('AUTH LOGIN', '334|503); > should become this: > $authRequired = $this->__smtpSend('AUTH LOGIN', '334|503|504'); > > And the additional status code must be added to the if after it as > well: > $authRequired == '504', so that the hole part looks like this: > > if (isset($this->smtpOptions['username']) && isset($this->smtpOptions > ['password'])) { > $authRequired = $this->__smtpSend('AUTH LOGIN', > '334|503|504'); // > changed line > if ($authRequired == '334') { > if > (!$this->__smtpSend(base64_encode($this->smtpOptions > ['username']), '334')) { > return false; > } > if > (!$this->__smtpSend(base64_encode($this->smtpOptions > ['password']), '235')) { > return false; > } > } elseif ($authRequired == '504') { // changed line > } elseif ($authRequired != '503') { > return false; > } > } > > Could that be implemented in the next release? Thanks! --~--~-~--~~~---~--~~ 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: Can't email using the Email Component
I use Eclipse PDT combined with XDebug to step through the code that's being executed to detect where the mail sending fails. In this case I would suggest to simple remove the @ in the __mail() function from the Email Component (/cake/libs/controllers/components/email.php) : function __mail() { $header = implode("\n", $this->__header); $message = implode("\n", $this->__message); if (ini_get('safe_mode')) { return mail($this->to, $this->__encode($this->subject), $message, $header); } return mail($this->to, $this->__encode($this->subject), $message, $header, $this->additionalParams); } This will hopefully show a warning or error from the mail function telling you why the mail isn't being sent out ... Hope this helps. On Fri, Sep 18, 2009 at 7:27 PM, lovettcreati...@gmail.com < ed...@lovettcreations.org> wrote: > What do you emain you usually debug into the Email Components? > > On Sep 18, 1:48 am, Bert Van den Brande wrote: > > Have you tested the PHP mail() function directly ? > > > > The problem with the EmailComponent is that it hides any indicative mail > > errors that would help you find the cause for the problem ... > > > > I usually debug into the EmailComponents send code ... > > > > On Fri, Sep 18, 2009 at 7:00 AM, damanlovett >wrote: > > > > > > > > > I have read every tutorial and discussion but I can't get the email to > > > send out. Below is an excerpt from my controller. It redirects fine, > > > but I still get "Simple email not sent". Is there some setting in the > > > core or somewhere else that I'm missing? > > > > > var $components = array('Email'); > > > > >function sendemail(){ > > > > >$this->Email->to = 'ed...@myemail.com'; > > >$this->Email->subject = 'Cake test simple email'; > > >$this->Email->replyTo = 'nore...@localhost'; > > >$this->Email->from = 'Cake Test Account '; > > >$this->Email->delivery = 'mail'; > > > > >if ( $this->Email->send('Here is the body of the email') ) { > > >$this->Session->setFlash('Simple email sent'); > > >} else { > > >$this->Session->setFlash('Simple email not sent'); > > >} > > >$this->redirect('/offices'); > > >} > --~--~-~--~~~---~--~~ 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: Can't email using the Email Component
What I mean is that the EmailComponent uses @mail() , this suppresses the warnings/errors resulting from that function call. Btw the mail() function only returns a boolean , not a message of any kind. On Fri, Sep 18, 2009 at 11:01 AM, Walther wrote: > > If you look at the code, you'll notice that it returns exactly the > same thing as php mail() will return. > > On Sep 18, 7:48 am, Bert Van den Brande wrote: > > Have you tested the PHP mail() function directly ? > > > > The problem with the EmailComponent is that it hides any indicative mail > > errors that would help you find the cause for the problem ... > > > > I usually debug into the EmailComponents send code ... > > > > On Fri, Sep 18, 2009 at 7:00 AM, damanlovett >wrote: > > > > > > > > > I have read every tutorial and discussion but I can't get the email to > > > send out. Below is an excerpt from my controller. It redirects fine, > > > but I still get "Simple email not sent". Is there some setting in the > > > core or somewhere else that I'm missing? > > > > > var $components = array('Email'); > > > > >function sendemail(){ > > > > >$this->Email->to = 'ed...@myemail.com'; > > >$this->Email->subject = 'Cake test simple email'; > > >$this->Email->replyTo = 'nore...@localhost'; > > >$this->Email->from = 'Cake Test Account '; > > >$this->Email->delivery = 'mail'; > > > > >if ( $this->Email->send('Here is the body of the email') ) { > > >$this->Session->setFlash('Simple email sent'); > > >} else { > > >$this->Session->setFlash('Simple email not sent'); > > >} > > >$this->redirect('/offices'); > > >} > > > > > > > --~--~-~--~~~---~--~~ 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: Can't email using the Email Component
If you look at the code, you'll notice that it returns exactly the same thing as php mail() will return. On Sep 18, 7:48 am, Bert Van den Brande wrote: > Have you tested the PHP mail() function directly ? > > The problem with the EmailComponent is that it hides any indicative mail > errors that would help you find the cause for the problem ... > > I usually debug into the EmailComponents send code ... > > On Fri, Sep 18, 2009 at 7:00 AM, damanlovett wrote: > > > > > I have read every tutorial and discussion but I can't get the email to > > send out. Below is an excerpt from my controller. It redirects fine, > > but I still get "Simple email not sent". Is there some setting in the > > core or somewhere else that I'm missing? > > > var $components = array('Email'); > > > function sendemail(){ > > > $this->Email->to = 'ed...@myemail.com'; > > $this->Email->subject = 'Cake test simple email'; > > $this->Email->replyTo = 'nore...@localhost'; > > $this->Email->from = 'Cake Test Account '; > > $this->Email->delivery = 'mail'; > > > if ( $this->Email->send('Here is the body of the email') ) { > > $this->Session->setFlash('Simple email sent'); > > } else { > > $this->Session->setFlash('Simple email not sent'); > > } > > $this->redirect('/offices'); > > } > > --~--~-~--~~~---~--~~ 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: Can't email using the Email Component
Have you tested the PHP mail() function directly ? The problem with the EmailComponent is that it hides any indicative mail errors that would help you find the cause for the problem ... I usually debug into the EmailComponents send code ... On Fri, Sep 18, 2009 at 7:00 AM, damanlovett wrote: > > I have read every tutorial and discussion but I can't get the email to > send out. Below is an excerpt from my controller. It redirects fine, > but I still get "Simple email not sent". Is there some setting in the > core or somewhere else that I'm missing? > > var $components = array('Email'); > >function sendemail(){ > >$this->Email->to = 'ed...@myemail.com'; >$this->Email->subject = 'Cake test simple email'; >$this->Email->replyTo = 'nore...@localhost'; >$this->Email->from = 'Cake Test Account '; >$this->Email->delivery = 'mail'; > >if ( $this->Email->send('Here is the body of the email') ) { >$this->Session->setFlash('Simple email sent'); >} else { >$this->Session->setFlash('Simple email not sent'); >} >$this->redirect('/offices'); >} > > > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Can't email using the Email Component
I have read every tutorial and discussion but I can't get the email to send out. Below is an excerpt from my controller. It redirects fine, but I still get "Simple email not sent". Is there some setting in the core or somewhere else that I'm missing? var $components = array('Email'); function sendemail(){ $this->Email->to = 'ed...@myemail.com'; $this->Email->subject = 'Cake test simple email'; $this->Email->replyTo = 'nore...@localhost'; $this->Email->from = 'Cake Test Account '; $this->Email->delivery = 'mail'; if ( $this->Email->send('Here is the body of the email') ) { $this->Session->setFlash('Simple email sent'); } else { $this->Session->setFlash('Simple email not sent'); } $this->redirect('/offices'); } --~--~-~--~~~---~--~~ 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: Anyone get the Email Component to work with gmail smtp.gmail.com?
My solution was to extend the Email component into my own component and add a new delivery type. Someone recommended that if you set $this->delivery to 'mymailer' and create the function __mymailer() the EmailComponent will use this delivery method. I then used a third party library for sending smtp emails. Anyone doing this will realize that they'll need need to modify: public function __renderTemplate in order to get the templating system to work with their third party mailer. On Sep 4, 8:40 am, LunarDraco wrote: > You need to make sure in your php.ini you have uncommented the line > extension=php_openssl.dll > > Also here is a link that have some samples in php and good comments, > be sure and read them. > Get the simple php test file working first then you should be able to > do it.http://deepakssn.blogspot.com/2006/06/gmail-php-send-email-using-php-... > > On Sep 2, 6:53 pm, bunwich wrote: > > > Hi, > > > I changed the port to 465 and tried 'smtp.gmail.com' for the host. > > > Also used the host 'ssl://smtp.gmail.com' > > > The email works fine with sendmail. > > > Anyone know if tsl/ssl is supported? --~--~-~--~~~---~--~~ 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: Anyone get the Email Component to work with gmail smtp.gmail.com?
You need to make sure in your php.ini you have uncommented the line extension=php_openssl.dll Also here is a link that have some samples in php and good comments, be sure and read them. Get the simple php test file working first then you should be able to do it. http://deepakssn.blogspot.com/2006/06/gmail-php-send-email-using-php-with.html On Sep 2, 6:53 pm, bunwich wrote: > Hi, > > I changed the port to 465 and tried 'smtp.gmail.com' for the host. > > Also used the host 'ssl://smtp.gmail.com' > > The email works fine with sendmail. > > Anyone know if tsl/ssl is supported? --~--~-~--~~~---~--~~ 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: Anyone get the Email Component to work with gmail smtp.gmail.com?
I think the proper port for Gmail is 995. Rick On Sep 2, 8:53 pm, bunwich wrote: > Hi, > > I changed the port to 465 and tried 'smtp.gmail.com' for the host. > > Also used the host 'ssl://smtp.gmail.com' > > The email works fine with sendmail. > > Anyone know if tsl/ssl is supported? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Anyone get the Email Component to work with gmail smtp.gmail.com?
Hi, I changed the port to 465 and tried 'smtp.gmail.com' for the host. Also used the host 'ssl://smtp.gmail.com' The email works fine with sendmail. Anyone know if tsl/ssl is supported? --~--~-~--~~~---~--~~ 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: multiple $to addresses email component
yes that worked, it was the debug output that was confusing me, it interpreted that string as an Array for some reason.. On Aug 31, 9:58 am, Aivaras wrote: > Ever tried $this->Email->to = '@user.com, t...@user.com';// ? > > Faifas > > On Mon, Aug 31, 2009 at 09:56, Brendon Gleeson wrote: > > > > > How do I specify multiple $to addresses in the email component? when I > > specify a comma separated string the mail debug indicates "Array" > > instead of a string? --~--~-~--~~~---~--~~ 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: multiple $to addresses email component
Ever tried $this->Email->to = 'o...@user.com, t...@user.com';// ? Faifas On Mon, Aug 31, 2009 at 09:56, Brendon Gleeson wrote: > > How do I specify multiple $to addresses in the email component? when I > specify a comma separated string the mail debug indicates "Array" > instead of a string? > > > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
multiple $to addresses email component
How do I specify multiple $to addresses in the email component? when I specify a comma separated string the mail debug indicates "Array" instead of a string? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Email Component Skip Authentification when using SMTP
Hi Guys, i just discovered a small bug in the latest cake php email component class when using SMTP delivery and server does not need any authentification to be send. The email component checks the authentification method by sending "AUTH LOGIN" to the server and checks the response code for a valid authentification status code. But it also should check for a 504 code wich says that the SMTP Server does not need any authentification at all: $authRequired = $this->__smtpSend('AUTH LOGIN', '334|503); should become this: $authRequired = $this->__smtpSend('AUTH LOGIN', '334|503|504'); And the additional status code must be added to the if after it as well: $authRequired == '504', so that the hole part looks like this: if (isset($this->smtpOptions['username']) && isset($this->smtpOptions ['password'])) { $authRequired = $this->__smtpSend('AUTH LOGIN', '334|503|504'); // changed line if ($authRequired == '334') { if (!$this->__smtpSend(base64_encode($this->smtpOptions ['username']), '334')) { return false; } if (!$this->__smtpSend(base64_encode($this->smtpOptions ['password']), '235')) { return false; } } elseif ($authRequired == '504') { // changed line } elseif ($authRequired != '503') { return false; } } Could that be implemented in the next release? Thanks! --~--~-~--~~~---~--~~ 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: Email Component return path
Why not use $this->Email->replyTo = 'jdai...@gmail.com'; $this->Email->from = 'Obiyoda '; instead? Cheers, tobi_one On Jul 28, 4:26 pm, Obiyoda wrote: > I can't seem to get the email component to set a correct return path > in the header. I've tried setting $this->Email->return = > 'someb...@somewhere.com' yet the email headers are showing the return > paths as being www-d...@localhost instead of someb...@somewhere.com. > I'm using ubuntu Jaunty with sendmail in my test environment if that > helps at all but i've tried it on our production server and it gives > me the same issues(also using sendmail). --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Email Component return path
I can't seem to get the email component to set a correct return path in the header. I've tried setting $this->Email->return = 'someb...@somewhere.com' yet the email headers are showing the return paths as being www-d...@localhost instead of someb...@somewhere.com. I'm using ubuntu Jaunty with sendmail in my test environment if that helps at all but i've tried it on our production server and it gives me the same issues(also using sendmail). --~--~-~--~~~---~--~~ 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: Root Server: email-component fails sometimes, why?
Anything on your system to suggest it's overloaded and the messages are getting silently dropped? If you increase Cake's debug level you should see some output which could help you out, it'll give you a full stack trace I believe. On Jul 15, 1:17 pm, DigitalDude wrote: > Hey, > > yes, all emails that are not being delivered are not listet in the > logs of my email server. It looks like the send() command never gets > executed, the email is never passed into the mail-queue on the server. > The weirdest thing of all is, that on another server, every email gets > send without ANY problems. And it is the exact same code! > > On 15 Jul., 22:07, GravyFace wrote: > > > Anything in your sendmail/qmail/postfix queue? logs? > > > On Wed, Jul 15, 2009 at 4:01 PM, > > > DigitalDude wrote: > > > > Hey, > > > > the App on my root-server sometimes does not send emails, even if the > > > recipients are the same. So when I use a testfunction which sends the > > > exact same email to the same address let's say 5 times, there are only > > > 3 or 4 mails delivered and the other(s) are not! How can this happen? --~--~-~--~~~---~--~~ 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: Root Server: email-component fails sometimes, why?
Hey, yes, all emails that are not being delivered are not listet in the logs of my email server. It looks like the send() command never gets executed, the email is never passed into the mail-queue on the server. The weirdest thing of all is, that on another server, every email gets send without ANY problems. And it is the exact same code! On 15 Jul., 22:07, GravyFace wrote: > Anything in your sendmail/qmail/postfix queue? logs? > > On Wed, Jul 15, 2009 at 4:01 PM, > > DigitalDude wrote: > > > Hey, > > > the App on my root-server sometimes does not send emails, even if the > > recipients are the same. So when I use a testfunction which sends the > > exact same email to the same address let's say 5 times, there are only > > 3 or 4 mails delivered and the other(s) are not! How can this happen? --~--~-~--~~~---~--~~ 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: Root Server: email-component fails sometimes, why?
Anything in your sendmail/qmail/postfix queue? logs? On Wed, Jul 15, 2009 at 4:01 PM, DigitalDude wrote: > > Hey, > > the App on my root-server sometimes does not send emails, even if the > recipients are the same. So when I use a testfunction which sends the > exact same email to the same address let's say 5 times, there are only > 3 or 4 mails delivered and the other(s) are not! How can this happen? > > > > > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---