Welcome Guest, Not a member yet? Register   Sign In
Simple email question.... I think!
#1

[eluser]danfloun[/eluser]
Hello,

I got a results table which returns all the records of a phone book.

I want to be able to make the emails clickable so that they open on the systems default email client e.g. Outlook Express.

I've enabled the email library though I'm not sure whether that's actually necessary here as a bit of simple php may do this but for the life of me I can't get anything to work.

Here's the part of the results table.


Code:
<?php foreach($query as $row): ?>
            <tr>
                <td>&lt;?=$row->company;?&gt;</td>
                <td>&lt;?=$row->first_name;?&gt;</td>
                <td>&lt;?=$row->last_name;?&gt;</td>
                <td>&lt;?=$row->landline_tel;?&gt;</td>
                <td>&lt;?=$row->mobile_tel;?&gt;</td>
                <td>&lt;?=$row->fax_tel;?&gt;</td>
                <td>&lt;?=$row->email;?&gt;</td>
            </tr>
&lt;?php endforeach;?&gt;

Thanks for your help..

Danny
#2

[eluser]abmcr[/eluser]
Use the URL helper as http://ellislab.com/codeigniter/user-gui...elper.html
Code:
<td>&lt;?=safe_mailto($row->email,"TEXT");?&gt;</td>




Theme © iAndrew 2016 - Forum software by © MyBB