It looks like you're new here. If you want to get involved, click one of these buttons!
$this->email->message($this->load->view('confirmComment-html', $data, FALSE));
Array ( [lang] => A comment has been added to your blog post. To review the comment login to FUEL: [link] => http://localhost/highlandfuel/fuel/blog/comments [spam] => [published] => Published: no [author] => Author Name: pop [authorEmail] => Author Email: pop@gmail.com [authorWebsite] => Website: [authorIp] => Author IP: newtron (127.0.0.1) [comment] => Content: khhhlhh
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<style>
a { color: #F95506; }
a:visited { color: #c60; }
a:hover { color: #713800; }
h2.highland {
color: #9e5827;
font-size: 14px;
font-weight: bold;
font-family: 'Homenaje', sans-serif;
}
</style>
</head>
<body>
<div style="max-width: 800px; margin: 0; padding: 30px 0;">
<p><em>This is an automated message from Highland Coffee Roastery ordering system.</em></p>
<p><em>Please do not reply to this email address.</em></p>
<p><?= $lang . $link ?></p>
<p><?= $spam ?></p>
<p><?= $published ?></p>
<p><?= $author ?></p>
<p><?= $authorEmail ?></p>
<p><?= $authorWebsite ?></p>
<p><?= $authorIp ?></p>
<p><?= $comment ?></p>
<p>Have a great day,</p>
<p>
<h2 class="highland">Highland Coffee Roastery</h2>
Maluti Highlands Centre<br />
Shop No. 9,<br />
Market St cnr Roos<br />
Clarens, 9707<br />
Free State<br />
</p>
<p>
Phone: (0)58 - 256 1136<br />
Website: www.highlandcoffeeroastery.co.za<br />
</p>
<p><img src="<?php echo base_url(); ?>assets/images/logoSml.png" alt="Highland Coffee"/></p>
</div>
</body>
</html>
Comments
$this->load->library('email', array('mailtype' => 'html'));
Why are you using false to load the view? You need the view returned for use as markup/a variable for the email class.
Try:
$html = $this->load->view('confirmComment-html', $data, true); # echo $html; Uncomment if still no good. $this->email->message($html);
$this->load->view('confirmComment-html', $data, false);
helped. I somehow remembered that if I use False I will see the view on the screen.Thanks