$add = trim($dip->email);
$text ="Your Exam Name : "." ".$name."\n"."Exam Date : "." ".$date."\n"."Exam Start time : "." ".$time."\n"."Exam Duration : "." ".$duration." Minutes"."\n\n\n Please Log in to:"." "."http://exam.thecitybank.com \n\n\nThis is an AUTO_GENERATED email. Please do not reply here";
$config['protocol'] = 'smtp';
$config['smtp_host']='smtp.thecitybank.com';
$config['port']='25';
$config['charset']='utf-8';
$config['wordwrap']='TRUE';
$config['multitype']='html';
$config['newline']='\n';
$this->email->initialize($config);
$this->email->clear();
$this->email->from('service.quality@thecitybank.com');
$this->email->to($add);
$this->email->subject('Retake Exam');
$this->email->message($text);
if($this->email->send())
{
echo '<br><font color="Green">Mail Sent Successfully to UserId</font>'.nbs(2).$dip->username.nbs(2).'e-mail address:'.nbs(2).$dip->email;
}
else
{
echo '<br><font color="RED">Mail Sent Failed To UserId</font>'.nbs(2).$dip->username.nbs(2).'e-mail address:'.nbs(2).$dip->email;
}
$text ="Your Exam Name : "." ".$name."\n"."Exam Date : "." ".$date."\n"."Exam Start time : "." ".$time."\n"."Exam Duration : "." ".$duration." Minutes"."\n\n\n Please Log in to:"." "."http://exam.thecitybank.com \n\n\nThis is an AUTO_GENERATED email. Please do not reply here";
$config['protocol'] = 'smtp';
$config['smtp_host']='smtp.thecitybank.com';
$config['port']='25';
$config['charset']='utf-8';
$config['wordwrap']='TRUE';
$config['multitype']='html';
$config['newline']='\n';
$this->email->initialize($config);
$this->email->clear();
$this->email->from('service.quality@thecitybank.com');
$this->email->to($add);
$this->email->subject('Retake Exam');
$this->email->message($text);
if($this->email->send())
{
echo '<br><font color="Green">Mail Sent Successfully to UserId</font>'.nbs(2).$dip->username.nbs(2).'e-mail address:'.nbs(2).$dip->email;
}
else
{
echo '<br><font color="RED">Mail Sent Failed To UserId</font>'.nbs(2).$dip->username.nbs(2).'e-mail address:'.nbs(2).$dip->email;
}
No comments:
Post a Comment