Controller
public function index(){
send_mail(\'New Volunteer Form received\', $this->load->view(\'site/email/volunteer\', NULL, TRUE
Try this
$this->email->attach('/path/to/photo1.jpg', 'inline');
or
$message = '<td>Photo</td>';
$message .= '<td style="text-align: center">';
$message .= '<img src="<?php base_url() ?>uploads/volunteer/<?php echo $_POST['."userfile".']; ?>" height="100" width="150">';
$message .= '</td></tr>';
To use the default disposition (attachment), leave the second parameter blank, otherwise use a custom disposition