Email class |
[eluser]Apfel1988[/eluser]
Hello, i will use the Email class to send emails via codeigniter. But when i send the form i have the following errors: Code: A PHP Error was encountered This is my php code: Code: $this->load->library('email'); I have valdiate the parameters for all email functions and tested via echo,.. Is anybody here who can tell me the Problem? Thank you very much.
[eluser]Apfel1988[/eluser]
Thank, i fixed the Problem. Config must be initialised before set The email Informations,,,
[eluser]thephpx[/eluser]
my index() in controller welcome.php : $this->load->library('email'); $config['protocol'] = 'sendmail'; $this->email->initialize($config); $this->email->from('[email protected]', 'thephpx'); $this->email->to('[email protected]'); $this->email->subject('Email Test'); $this->email->message('Testing the email class.'); $this->email->send(); echo $this->email->print_debugger(); response text: Exit status code: 1 Unable to open a socket to Sendmail. Please check settings. Unable to send email using PHP Sendmail. Your server might not be configured to send mail using this method. User-Agent: CodeIgniter Date: Mon, 16 Feb 2009 08:10:32 +0000 From: "thephpx" Return-Path: To: [email protected] Subject: =?utf-8?Q?Email_Test?= Reply-To: "[email protected]" X-Sender: [email protected] X-Mailer: CodeIgniter X-Priority: 3 (Normal) Message-ID: <[email protected]> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Testing the email class. Please suggest what is the problem
[eluser]TheFuzzy0ne[/eluser]
Please post a new request instead of hijacking someone else's thread. |
Welcome Guest, Not a member yet? Register Sign In |