473,549 Members | 2,731 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

sendmail not working...

Hello,

I am having a problem with PHP 4.2.2 and RH 8. PHP is working fine except
email.

I have a test script to send mail, I have sendmail_path =
'/usr/lib/sendmail -t -i' set in php.ini, sendmail can send mail from the
command line but if I use the script I get the following error on the http
log file:

sh: line 1: /usr/lib/sendmail -t -i: No such file or directory

as I said sendmail does exist. Any ideas?

Miguel.


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.561 / Virus Database: 353 - Release Date: 1/13/2004
Jul 17 '05 #1
2 17172
"Babaloo" <mi****@forward .net> wrote in message
news:10******** *****@corp.supe rnews.com...
Hello,

I am having a problem with PHP 4.2.2 and RH 8. PHP is working fine except
email.

I have a test script to send mail, I have sendmail_path =
'/usr/lib/sendmail -t -i' set in php.ini, sendmail can send mail from the
command line but if I use the script I get the following error on the http
log file:

sh: line 1: /usr/lib/sendmail -t -i: No such file or directory

as I said sendmail does exist. Any ideas?

Miguel.

hmm, might be becouse sendmail is located here:

/usr/sbin/sendmail

--
Mike Bradley
http://www.gzentools.com -- free online php tools
Jul 17 '05 #2
Actually /usr/lib/sendmail is a symlink to /usr/sbin/sendmail which in turn
is a symlink to /etc/alternatives/mta, which actually has the sendmail
executable, RH sillines that allows you to switch between Sendmail and
Potsfix. But the problem was that send_path="/usr/lib/sendmail -t -i" needs
the doublequotes not single quotes as stated in the documentaton, after that
it worked ok.

"CountScubu la" <me@scantek.hot mail.com> wrote in message
news:oR******** ********@newssv r29.news.prodig y.com...
"Babaloo" <mi****@forward .net> wrote in message
news:10******** *****@corp.supe rnews.com...
Hello,

I am having a problem with PHP 4.2.2 and RH 8. PHP is working fine except email.

I have a test script to send mail, I have sendmail_path =
'/usr/lib/sendmail -t -i' set in php.ini, sendmail can send mail from the command line but if I use the script I get the following error on the http log file:

sh: line 1: /usr/lib/sendmail -t -i: No such file or directory

as I said sendmail does exist. Any ideas?

Miguel.

hmm, might be becouse sendmail is located here:

/usr/sbin/sendmail

--
Mike Bradley
http://www.gzentools.com -- free online php tools

Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
4473
by: Wayno | last post by:
Hoping someone can help me out with this problem. First problem, is I am unable to view my php error log. In my php.ini I have my log in /var/www/logs/php_error_log. However, it has remained empty. Secondly, my sendmail works fine from command prompt. However, when trying to send mail through a php script (I have tried a couple), it says it...
3
4801
by: Andrew Benjamin | last post by:
Hi I have a standalone machine running Mandrake 10 with apache server and PHP installed. The PHP mail() function is working but very slowly. It takes about 10-20 seconds to send a single email. Can anyone advise me on what could be causing this? I have tried using mail() on other apache setups and the response time has been much faster.
2
2271
by: STEPHEN GOODE | last post by:
I had a client upgrade his PHP from 4.? to 4.3.9. An important script stopped working. It seems to work fine, but it uses the mail() function and sendmail to send notifications. The email never arrives. The script worked fine before the upgrade. Variables in php.ini seem to be set correctly. The system is Redhat Linux. With the upgrade, a new...
0
2150
by: Aaron Powell | last post by:
I am writing a program for a study I am doing where I must contact several different organisations stored in a database I compiled, but I need to send each email one at a time so they don't know who else I sent to. I tested my sendmail and it works well, but I am having a problem with chomp in the case I am using it. When getting $email, if...
2
6348
by: mike | last post by:
I've spent a couple of days on this and I'm to the "bang-my-head 'gainst the monitor and babble in tongues" mode. First - SuSE Pro 9.3, Linux 2.6.11.4-21.7, Apache 2.0.53, PHP 4.3.10 I have sendmail running on the local server - mail from unix (1) mail and mutt work locally on the server. This is, specifically, sending mail to a...
1
8583
by: IamtheEvster | last post by:
I'm working with a LAMP platform - PHP 5.1.4, MySQL 5.0.21, RedHat Enterprise 4... Running Sendmail 8.x. I'm using the PHP mail() function to send some confirmation emails out when a user submits a form. My understanding is that this is basically a wrapper for sendmail (specifically, sendmail -t -i). In my development environment, this...
6
1870
by: Guern1 | last post by:
Help Please I am very new to the Perl game and need some help I have a Perl application which works fine and can output some plain text information that I need to send to selected users via e-mail. The e-mail address are under the $addr and the information that I whish to put in the e-mail message are held in $msg I have installed and...
3
5939
by: zaxxon25 | last post by:
I am having an issue with attaching 2 attachments one xip and other excel file with email and sending using perl sendmail. I tried to look on various forums and everywhere i get advice using MIME :: Lite. Unfortunately i cannot use it . I have tried to write a program on my own to send 2 attachments and sending using perl sendmail but program is...
3
3374
by: digitaldiva | last post by:
Hi I am new here and once upon a time I worked with Perl, now I am trying again and need some help: I wrote a Perl script a few years ago that opened an order entry TXT file and sent each customer with an email address a confirmation email in html or txt. Simple enough and very effective. Now I am editing this script to send a general...
0
7446
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7715
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7956
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7469
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7808
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6040
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3480
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1935
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
757
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.