PDA

View Full Version : Sendmail "Exit status code: 8"



Devaulia
12-13-2011, 07:20 AM
I'm trying to send emails using Sendmail protoco using the framework CodeIgniter.

The first attempts were perfect but now I don't know why the script stopped working.
I'm receiving the next error message:


Exit status code: 8
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: Tue, 13 Dec 2011 08:01:31 -0700
From: "IDealop Group"
Return-Path:
To: destination@email
Subject: =?iso-8859-1?Q?Test?=
Reply-To: "noreply@www.domain.com"
X-Sender: noreply@www.domain.com
X-Mailer: CodeIgniter
X-Priority: 3 (Normal)
Message-ID: <4ee768cbd076d@www.domain.com>
Mime-Version: 1.0


Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

Email content

I tried different different config email settings but nothing seems to be working. Currently I'm using this config:
$config['protocol'] = 'sendmail';
$config['mailpath'] = '/usr/sbin/sendmail';
$config['mailtype'] = 'text';
$config['charset'] = 'iso-8859-1';
$config['wordwrap'] = FALSE;

Someone knows the reason of this error? Thanks :)

JohnLoose
12-19-2011, 08:54 PM
Don't know if this helps, I think the first error is telling: Unable to open a socket to Sendmail. Please check settings.

It seems that the initial connection to the mail server is failing, causing everything else to blow up. Possibly the mail server requires authentication and your settings got changed somehow? Don't know, just an idea, hope it helps.