CakePHP and Ajax request

2013-03-20 Thread Piotr Chabros
Hi I am currently using ajax in multiple controllers in my application. I implemented the ajax functionality using the jQuery supported version. $.ajax({ url:'getCountries', type: "POST", dataType: "html", data:"data=" + result, success: function(data){ //magic... } } });

Re: Email component working wrong

2011-09-11 Thread Piotr Chabros
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.,

CakePHP email component problem

2011-09-10 Thread Piotr Chabros
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 rec

Email component working wrong

2011-09-10 Thread Piotr Chabros
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 t