Welcome Guest, Not a member yet? Register   Sign In
email error
#1

[eluser]diasansley[/eluser]
i tried the email class i get the following error

do i need to change anything in the php.ini file?
what settings are required in the lib file?
Quote: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: 1519


my controller is as follows
Code:
<?php

class Email extends controller
{
   function Welcome()
  {
   parent::Controller();

     }


   function index()
{
   $this->load->library('email');
$this->email->from('[email protected]', 'Your Name');
$this->email->to('[email protected]');
//$this->email->cc('[email protected]');
//$this->email->bcc('[email protected]');
$this->email->subject('Email Test');
$this->email->message('Testing the email class.');    
$this->email->send();

echo $this->email->print_debugger();


   }

}
?>
thanks


Messages In This Thread
email error - by El Forum - 12-06-2010, 06:56 AM
email error - by El Forum - 12-06-2010, 12:25 PM
email error - by El Forum - 12-06-2010, 11:31 PM
email error - by El Forum - 12-07-2010, 09:48 AM
email error - by El Forum - 12-07-2010, 01:36 PM
email error - by El Forum - 12-25-2010, 04:03 AM



Theme © iAndrew 2016 - Forum software by © MyBB