<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Email_pcs extends CI_Controller {
	public function __construct()
	{
		parent::__construct();
		session_start();
		
		date_default_timezone_set('Asia/Singapore');
		$this->load->model('edm_m');
	}
	
	public function t($code='',$company_code='',$link)
	{
		print 'z5';
		
	}
	 
	 
	public function edm_content($code='',$company_code='',$link)
	{
		$content = "
		<p>Dear Regular Members,</p>
<p>
If you've missed our previous emails due to your busy schedule, this is a gentle reminder to complete the <strong>online Professional Conduct Statement</strong> <a href='".$link."'>here</a> if you have not already done so. Please ensure your submission is done by <strong>7 March 2025</strong>.
</p>
<p>We appreciate your prompt attention to this matter. If you have any questions, feel free to contact the IMAS Secretariat at <a href='mailto:replies@imas.org.sg'>replies@imas.org.sg</a>.
</p>
";
		
		$data['content'] = $content;
		
		$html = $this->load->view('emails/mass-email.php',$data,TRUE);
		
		
		return $html;
		
	}
	 
	public function ta($id='')
	{			
		
		$html = file_get_contents('2.html');
		
		
		$from = $this->config->item('from');
		$username = $this->config->item('username');
		$password = $this->config->item('password');
		$host = $this->config->item('host');
		$port = $this->config->item('port');
		$from_name = $this->config->item('from_name');
		$subject = 'IMAS Online Members\' Directory Update';
							
		//$cc = $cc.',replies@imas.org.sg';
		
		$to = 'sarah.house@ortec-finance.com';
		$cc = 'Stefano.Lee@ortec-finance.com,replies@imas.org.sg';
	
		send_email($to,$host,$port,$username,$password,$from,$from_name,$subject,$html,$file,$filename,$file,$filename,$cc);
		print 'DONE';
		
	}
}
/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */