Hi guys just a quick question how do i send email from a form in codeigniter? I have searched and tried to get it right but it just keeps telling me that the page required could not be found?

Here is my view:

<div class="container">
<div class="row">
    <div class="container">
        <div class="page-header">
            <h2>Get in touch with Us</h2>
            <p>Thank you for visiting our website, should you require any information or have a booking enquiry please
                complete the following form and we will get back to you as soon as we can. It's Usually within 24 Hours.</p>
        </div>
        <div class="row">
            <div class="col-md-6 pull-left" id="contact_form">
                <?php
                    echo form_open("email/send");
                    echo form_label("Name: ", "fullName");
                    $data = array(
                        "name" => "fullName",
                        "id" => "fullName",
                        "value" => "",
                        "class" => "form-control"
                    );
                    echo form_input($data);
                    echo "<br />";
                    echo form_label("Email: ", "email");
                    $data = array(
                        "name" => "email",
                        "id" => "email",
                        "value" => "",
                        "class" => "form-control"
                    );
                    echo form_input($data);
                    echo "<br />";
                    echo form_label("Message: ", "message");
                    $data = array(
                        "name" => "message",
                        "id" => "message",
                        "value" => "",
                        "class" => "form-control"
                    );
                    echo form_textarea($data);
                    echo "<br />";
                    $data = array(
                    "name" => "contactSubmit",
                    "type" => "submit",
                    "class" => "btn btn-md btn-primary",
                    "id" => "submit",
                    "value" => "Send Message"
                    );
                    echo form_submit($data);
                    echo form_close();
                    echo "<br />";
                    echo "<br />";
                ?>
            </div>
            <div class="col-md-6 pull-right" id="contact_info">
                <div class="page-header">
                <h4><i class="fa fa-info-circle"></i> Contact Information</h4>
                </div>
                <p><strong>Snail Mail</strong></p>
                <p>Po Box 173<br />Venterstad<br />9798</p>
                <br />
                <p><strong>Analog Information</strong></p>
                <p><i class="fa fa-phone"></i> TEL: +27 (051) 655 0202 (Office Hours)</p>
                <p><i class="fa fa-mobile-phone"></i> CELL: +27 (072) 374 2172 (After Hours)</p>
                <p><i class="fa fa-fax"></i> FAX: +27 (086) 655 5392</p>
                <br />
                <p><strong>Digital Information</strong></p>
                <p><i class="fa fa-facebook"></i> <a href="https://www.facebook.com/karoosunsets" target="_blank">Karoo Sunsets Motel</a></p>
                <p><i class="fa fa-globe"></i> <a href="http://www.karoosunsetsmotel.co.za">Karoo Sunsets Motel Website</a></p>
                <p><i class="fa fa-envelope"></i> admin@karoosunsetsmotel.co.za</p>
                <p><i class="fa fa-envelope"></i> bookings@karoosunsetsmotel.co.za</p>
            </div>
        </div>
    </div>
</div> <!-- ./row -->
</div> <!-- ./container -->

How should the email controller look like?

Please could you help me resolve this?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.