i am new CI error while inserting database

i am not getting insert into the database. the error is

A PHP Error was encountered
Severity: Warning
Message: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()
Filename: libraries/Email.php
Line Number: 1252


An Error Was Encountered
Unable to connect to your database server using the provided settings.

Error 1: Do you have a email server setup? I guess not.
Error 2: Check your database settings in database.php. These are not correct, as the message suggests

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.