It worked fine before I added an ssl certificate but now is not sending any of the data along with the email.
It will send the Template email but not the data but I know that the data is making it to the controller.php as the sender in the Email is correct.
I bring the info into the controller as follows.
Code: Select all
if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validate()) {
if (isset($this->error['fullname'])) {
$data['error_fullname'] = $this->error['fullname'];
} else {
$data['error_fullname'] = '';
}
Code: Select all
$html = $this->load->view('default/template/mail/employment.tpl',$data);
// This right here no Longer works after adding SSL
Code: Select all
$mail->setSender(html_entity_decode($this->request->post['fullname'], ENT_QUOTES, 'UTF-8'));
$mail->setHtml($html);
$mail->send();
Code: Select all
$data['action'] = $this->url->link('information/Employment', '', 'SSL');
Code: Select all
<?php echo $fullname ?>
Any help at all is greatly appreciated and will be glad to provide any additional information if needed.