Login   Register  
PHP Classes
elePHPant
Icontem

it was not possible to open sendmail input pipe

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      MIME E-mail message sending  >  MIME E-mail message sending package blog  >  Fast PHP Mass Mailer ...  >  All threads  >  it was not possible to open sendmail input pipe  >  (Un) Subscribe thread alerts  
Subject:it was not possible to open sendmail input pipe
Summary:mail not sent, error is generated
Messages:7
Author:Siddiq Ansari
Date:2013-12-08 08:49:57
Update:2013-12-11 09:59:43
 

  1. it was not possible to open sendmail input pipe   Reply   Report abuse  
Picture of Siddiq Ansari
Siddiq Ansari
2013-12-08 22:19:07
Hello,
I used the class to send bulk email but I got this message and no any emails are send to recipients. What should I do can you help me please?

thanks

  2. Re: it was not possible to open sendmail input pipe   Reply   Report abuse  
Picture of Manuel Lemos
Manuel Lemos
2013-12-08 23:55:40 - In reply to message 1 from Siddiq Ansari
Very likely there was an error. Did you check the $error variable with the value returned by the Send() function?

  3. Re: it was not possible to open sendmail input pipe   Reply   Report abuse  
Picture of Siddiq Ansari
Siddiq Ansari
2013-12-10 04:16:30 - In reply to message 2 from Manuel Lemos
The only error I got was "It was not possible to open sendmail input pipe"

and the code I used is like this,as you have provided in the example:
<?php
require('bulkmail/email_message.php');
require('bulkmail/sendmail_message.php');
$message=new sendmail_message_class;
$message->SetBulkMail(true);
$message->SetEncodedHeader('Subject', 'Some subject');

/*
* Define the recipients list
*/
$to=array(
array(
"address"=>"abc@siddiq.com.np",
"name"=>"abc xys"
),
array(
"address"=>"abc@gmail.com",
"name"=>"the cellroti"
),
array(
"address"=>"whyisthis@yahoo.com",
"name"=>"saka"
)
);




/*
* Create a place holder text message body part
*/
$text = 'Hello, some text message';
$message->CreateQuotedPrintableTextPart($text, '',$text_part);

/*
* Create a place holder HTML message body part
*/
$html = 'Hello, some HTML message';
$message->CreateQuotedPrintableHtmlPart($html, '', $html_part);

/*
* Assemble the text and HTML parts as alternatives
*/
$alternative_parts = array($text_part, $html_part);
$message->AddAlternativeMultipart($alternative_parts);

/*
* Cache the message for all recipients
*/
$message->cache_body = true;

/*
* Iterate for each recipient.
*/
foreach($to as $recipient)
{

/* Personalize the recipient address. */
$message->SetEncodedEmailHeader('To',
$recipient['address'], $recipient['name']);

/* Send the message checking for eventually acumulated errors */
$error=$message->Send();
if(strlen($error))
break;
}
?>

  4. Re: it was not possible to open sendmail input pipe   Reply   Report abuse  
Picture of Manuel Lemos
Manuel Lemos
2013-12-10 04:43:02 - In reply to message 3 from Siddiq Ansari
Your sendmail or compatible program may be broken.

Can you go in the shell of you server and try to list these sendmail files using ls here?

ls -l /usr/lib/sendmail

or

ls -l /usr/sbin/sendmail

  5. Re: it was not possible to open sendmail input pipe   Reply   Report abuse  
Picture of Siddiq Ansari
Siddiq Ansari
2013-12-10 07:11:47 - In reply to message 4 from Manuel Lemos
I do not have shell access from my cpanel. But I can send mail using "mail()" function without any error. What should I do?

  6. Re: it was not possible to open sendmail input pipe   Reply   Report abuse  
Picture of Manuel Lemos
Manuel Lemos
2013-12-10 07:18:09 - In reply to message 5 from Siddiq Ansari
Shell access is via ssh.

Anyway, you can always execute a PHP script like this to evaluate if sendmail or compatible is installed:

echo serialize(file_exists('/usr/lib/sendmail'));

echo serialize(file_exists('/usr/sbin/sendmail'));

  7. Re: it was not possible to open sendmail input pipe   Reply   Report abuse  
Picture of Siddiq Ansari
Siddiq Ansari
2013-12-11 09:59:43 - In reply to message 6 from Manuel Lemos
Hello sir,
I got this things: b:1;b:1;