[eluser]TheFuzzy0ne[/eluser]
Well my Emails are sent as HTML, so I'd have a view like this:
Code:
<p>
Hi, <?php echo $username; ?>
</p>
<p>
You are recieving this message because <?php echo $last_post_user_name; ?> has replied to a topic you have subscribed to.
</p>
<p>
Please click <a href="<?php echo site_url('forums/view_post/'.$post['id']); ?>" title="View Topic '<?php echo $topic['title']; ?>'">here to view the topic.
</p>
Then from my controller, I should be able to grab the body of the email like this:
Code:
$email_body = $this->load->view('email', $data, TRUE);
Then I can use that as the Email body, and configure the Email library accordingly.
Hope this helps.