Re: sending mail through Gmail SMTP by Email component?

2014-06-11 Thread Indrajeet Singh
Try its working.

$Email = new CakeEmail(array(
'port' => '465',
'timeout' => '300',
'host' => 'ssl://smtp.gmail.com',
'username' => 'usern...@gmail.com',
'password' => 'password',
'transport' => 'Smtp'
));
$Email->emailFormat('html');
$Email->subject('my subject');
$Email->to('tom...@domain.com');
$Email->from('f...@domain.com');
$Email->send('send message to user.');

Thanks,

On Thursday, 23 September 2010 20:22:18 UTC+5:30, pang wrote:
>
> I met a strange problem while using gmail as SMTP server. 
>
> What I want to do is to send bulk email with my domain email 
> ser...@tagroup.se , 
>
> I used cakephp Email component to handle this , I followed exact 
> configuration as mentioned in links below (CakePHP official tutorial 
> site), but the email can't be sent 
>
> http://book.cakephp.org/view/1290/Sending-A-Message-Using-SMTP 
>
>
> My configuration is as follows: 
>
> 'port'=>'465', 
> 'timeout'=>'30', 
> 'host' => 'ssl://smtp.gmail.com', 
> 'username'=>'ser...@tagroup.se ', 
> 'password'=>'' 
>
> But mail can't be sent. Do I need to set any more parameters?

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: CakePHP: How to remove LEFT JOIN in updateAll()

2013-08-05 Thread Indrajeet Singh
Hi All,

You can change in function

class BriefcaseComponent extends Object{ 

function delete($id){ 
$names = array('deleted' => '0'); 
$conditions = array("FilesFolders.instance_id" = '$id); 
$this->FilesFolders->updateAll($names, $conditions); 

> } 
>
> } 
> ?> 



On Wednesday, 12 November 2008 13:27:10 UTC+5:30, Kryptonian wrote:
>
> Hi, I have this problem that if my model uses a var $belongsTo = array 
> (), my updateAll() generated statement was affected with this error 
> message: 
>
> UPDATE `files_folders` AS `FilesFolders` LEFT JOIN `course_files` AS 
> `CourseFile` ON (`FilesFolders`.`account_id` = `CourseFile`.`id`) SET 
> `FilesFolders`.`deleted` = 0 WHERE `FilesFolders`.`instance_id` = ‘8′ 
>
>
> My code: 
>  class FilesFolders extends AppModel 
> { 
> var $belongsTo = array( 
>'CourseFile' => array( 
>'className' => 'CourseFile', 
>'foreignKey' => 'account_id' 
>) 
> ); 
> } 
>
>
> class BriefcaseComponent extends Object{ 
>
> function delete($id){ 
> $names = array('deleted' => '0'); 
> $conditions = "FilesFolders.instance_id = '$id'"; 
> $this->controller->FilesFolders->updateAll($names, 
> $conditions); 
> } 
>
> } 
> ?> 
>
>
> How can i remove the “LEFT JOIN” statement in my Update statement? 
>
> Thanks 
>

-- 
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/groups/opt_out.




Re: CakePHP: How to remove LEFT JOIN in updateAll()

2013-08-05 Thread Indrajeet Singh


On Wednesday, 12 November 2008 13:27:10 UTC+5:30, Kryptonian wrote:
>
> Hi, I have this problem that if my model uses a var $belongsTo = array 
> (), my updateAll() generated statement was affected with this error 
> message: 
>
> UPDATE `files_folders` AS `FilesFolders` LEFT JOIN `course_files` AS 
> `CourseFile` ON (`FilesFolders`.`account_id` = `CourseFile`.`id`) SET 
> `FilesFolders`.`deleted` = 0 WHERE `FilesFolders`.`instance_id` = ‘8′ 
>
>
> My code: 
>  class FilesFolders extends AppModel 
> { 
> var $belongsTo = array( 
>'CourseFile' => array( 
>'className' => 'CourseFile', 
>'foreignKey' => 'account_id' 
>) 
> ); 
> } 
>
>
> class BriefcaseComponent extends Object{ 
>
> function delete($id){ 
> $names = array('deleted' => '0'); 
> $conditions = "FilesFolders.instance_id = '$id'"; 
> $this->controller->FilesFolders->updateAll($names, 
> $conditions); 
> } 
>
> } 
> ?> 
>
>
> How can i remove the “LEFT JOIN” statement in my Update statement? 
>
> Thanks 
>

-- 
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/groups/opt_out.