Subversion Repositories SmartDukaan

Rev

Rev 20077 | Rev 20084 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 20077 Rev 20083
Line 32... Line 32...
32
		
32
		
33
		$Email = new CakeEmail();
33
		$Email = new CakeEmail();
34
		$Email->config('smtp')
34
		$Email->config('smtp')
35
		->from(array('help@profitmandi.com' => 'Admin at ProfitMandi'))
35
		->from(array('help@profitmandi.com' => 'Admin at ProfitMandi'))
36
		->to('naman.kumar@shop2020.in')
36
		->to('naman.kumar@shop2020.in')
37
		->cc('amit.gupta@shop2020.in')
37
// 		->cc('amit.gupta@shop2020.in')
38
		->attachments(array(
38
		->attachments(array(
39
				'callhistory.csv' => array(
39
				'callhistory.csv' => array(
40
						'file' => '../app/callhistory.csv',
40
						'file' => 'callhistory.csv',
41
						'mimetype' => 'text/csv',
41
						'mimetype' => 'text/csv',
42
						'contentId' => 'my-unique-id'
42
						'contentId' => 'my-unique-id'
43
				)))
43
				)))
44
		->subject('Callhistory Report');
44
		->subject('Callhistory Report');
45
		if($Email->send('Callhistory Report'))
45
		if($Email->send('Callhistory Report'))