Forums / Upgrading from 1.3.x to 1.3.9 / Email Error: Could not execute: /usr/sbin/sendmail

Email Error: Could not execute: /usr/sbin/sendmail

Locked
Results 1 to 20 of 28
This thread is locked. New replies are disabled.
23 Feb 2007, 07:05
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Posts:
62,757
Plugin Contributions:
1

Re: Email Error: Could not execute: /usr/sbin/sendmail

If the issue is a bad email address and you are asking for a new password with forgotten password you will get that error ...

Peek at the customers table via phpMyAdmin ... are you using the right email?
23 Feb 2007, 08:08
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: Email Error: Could not execute: /usr/sbin/sendmail

In your Admin->Configuration->Email Options ... it appears that you have "sendmail" selected for Email Transport.

Perhaps trying another option will work better with your hosting server.

Here are further ideas for troubleshooting email issues:
http://www.zen-cart.com/wiki/index.php/Troubleshoot_-_Email_Problems
23 Feb 2007, 17:23
#4
barcelona avatar

barcelona

New Zenner

Join Date:
Dec 2005
Posts:
45
Plugin Contributions:
0

Re: Email Error: Could not execute: /usr/sbin/sendmail

thanks guys!
11 Mar 2007, 20:20
#5
gameover avatar

gameover

New Zenner

Join Date:
Jan 2006
Posts:
5
Plugin Contributions:
0

Re: Email Error: Could not execute: /usr/sbin/sendmail

I've the same problem ! No solution has been found than take the old file "functions_email.php" of my version zencart 1.2.6.

I just make upgrade from 1.2.6 to 1.3.7.

Currently, it's impossible to make an order or send a mail throw zencart.

Any help would be appreciate.

Thanks

PS : I've try PHP method and I have the followinf error :
Warning: Cannot modify header information - headers already sent by (output started at /includes/functions/functions_email.php:144) in /includes/functions/functions_general.php on line 44
13 Mar 2007, 18:20
#6
gameover avatar

gameover

New Zenner

Join Date:
Jan 2006
Posts:
5
Plugin Contributions:
0

Re: Email Error: Could not execute: /usr/sbin/sendmail

Anyone has found the same problem ? 8-(
18 Mar 2007, 22:02
#7
gameover avatar

gameover

New Zenner

Join Date:
Jan 2006
Posts:
5
Plugin Contributions:
0

Re: Email Error: Could not execute: /usr/sbin/sendmail

I can't beleive that anyone have not the same problem after upgrading their website. Is there a community here ?
18 Mar 2007, 22:09
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: Email Error: Could not execute: /usr/sbin/sendmail

gameover:


PS : I've try PHP method and I have the followinf error :
Warning: Cannot modify header information - headers already sent by (output started at /includes/functions/functions_email.php:144) in /includes/functions/functions_general.php on line 44


Is there any other information shown on-screen at this point ?


'PHP' is usually the method you need to use if you were using sendmail before but sendmail is not working after upgrade.
12 May 2007, 05:39
#9
ellivir avatar

ellivir

Zen Follower

Join Date:
Sep 2005
Posts:
444
Plugin Contributions:
0

Re: Email Error: Could not execute: /usr/sbin/sendmail

DrByte:

- - -

'PHP' is usually the method you need to use if you were using sendmail before but sendmail is not working after upgrade.


I have the same problem and the option for PHP doesn't exist in this new, fresh installation I have made. I have only the options for smtp, SMTPAUTH, sendmail and sendmail -f there!
Is there some corrupted file or is this php option deprecated or something?

Elli
12 May 2007, 08:17
#10
chuckl avatar

chuckl

Totally Zenned

Join Date:
Nov 2006
Posts:
717
Plugin Contributions:
0

Re: Email Error: Could not execute: /usr/sbin/sendmail

Ellivir, what version of Zen Cart have you installed?
12 May 2007, 09:19
#11
kevin_a avatar

kevin_a

Zen Follower

Join Date:
Mar 2007
Posts:
134
Plugin Contributions:
0

Re: Email Error: Could not execute: /usr/sbin/sendmail

I have the same problem.
I have just upgraded to 1.3.7 (including databse)
and tried a test order, pay by check, and, acting as a customer got
"email error:could not execute /usr/sbin/sendmail"


permissions on class.phpmailer.php are they are.
owner/ read write
group/ read
others/ read

I cant say what was happening before upgrade, cos I couldn't even register a customer on the previous version...it just kept returning
create customer page, although that was when I had a shared SSL, and I am not using one at the moment just to keep it less complicated.

if the error is "could not execute" do I need to change the permissions?
Only guessing,
cheers
12 May 2007, 09:36
#12
kevin_a avatar

kevin_a

Zen Follower

Join Date:
Mar 2007
Posts:
134
Plugin Contributions:
0

Re: Email Error: Could not execute: /usr/sbin/sendmail

Ahh
Found the Email transport method which had defaulted to sendmail
When I changed to PHP, the process processed and I got the emails as customer and store owner.
12 May 2007, 09:39
#13
chuckl avatar

chuckl

Totally Zenned

Join Date:
Nov 2006
Posts:
717
Plugin Contributions:
0

Re: Email Error: Could not execute: /usr/sbin/sendmail

Indeed, 'could not execute /usr/sbin/sendmail' can well mean you do not have the correct permissions to execute this directly, nor will you get them, or as likely, we do not use sendmail, so it does not exist.
12 May 2007, 16:44
#14
ellivir avatar

ellivir

Zen Follower

Join Date:
Sep 2005
Posts:
444
Plugin Contributions:
0

Re: Email Error: Could not execute: /usr/sbin/sendmail

Chuckl:

Indeed, 'could not execute /usr/sbin/sendmail' can well mean you do not have the correct permissions to execute this directly, nor will you get them, or as likely, we do not use sendmail, so it does not exist.


Well, I do have the latest ZC and the XSS security update on it, all permissions like instructed and I have installed other shops before and I know where I should change the email option for PHP but frankly I do not see that option there at all, but only smtp, smtpauth, sendmail and sendmail -f.

Elli
12 May 2007, 17:21
#15
chuckl avatar

chuckl

Totally Zenned

Join Date:
Nov 2006
Posts:
717
Plugin Contributions:
0

Re: Email Error: Could not execute: /usr/sbin/sendmail

Ok, ellivir, could you use phpMyAdmin or whatever you use for database access, and check the configuration table in your database for a configuration key called EMAIL_TRANSPORT.
Associated with that will be a column entry called set_function. Could you post the set_function column entry for EMAIL_TRANSPORT here please.
12 May 2007, 17:59
#16
ellivir avatar

ellivir

Zen Follower

Join Date:
Sep 2005
Posts:
444
Plugin Contributions:
0

Re: Email Error: Could not execute: /usr/sbin/sendmail

Chuckl:

Ok, ellivir, could you use phpMyAdmin or whatever you use for database access, and check the configuration table in your database for a configuration key called EMAIL_TRANSPORT.
Associated with that will be a column entry called set_function. Could you post the set_function column entry for EMAIL_TRANSPORT here please.


That would be like this:
zen_cfg_select_option(array('sendmail', 'sendmail-f', 'smtp', 'smtpauth'),

And the configuration_description:

Defines if this server uses a local connection to sendmail or uses an SMTP connection via TCP/IP. Servers running on Windows and MacOS should change this setting to SMTP.<br /><br />SMTPAUTH should only be used if your server requires SMTP authorization to send messages. You must also configure your SMTPAUTH settings in the appropriate fields in this admin section.<br /><br />"Sendmail -f" is only for servers which require the use of the -f parameter to send mail. This is a security setting often used to prevent spoofing. Will cause errors if your host mailserver is not configured to use it.
12 May 2007, 18:07
#17
chuckl avatar

chuckl

Totally Zenned

Join Date:
Nov 2006
Posts:
717
Plugin Contributions:
0

Re: Email Error: Could not execute: /usr/sbin/sendmail

Thanks ellivir, now could you have a look at Admin-Tools-Server/Version Info for your store, the Zencart Section, and post the Database Patch level it's showing.
13 May 2007, 09:56
#18
ellivir avatar

ellivir

Zen Follower

Join Date:
Sep 2005
Posts:
444
Plugin Contributions:
0

Re: Email Error: Could not execute: /usr/sbin/sendmail

Chuckl:

Thanks ellivir, now could you have a look at Admin-Tools-Server/Version Info for your store, the Zencart Section, and post the Database Patch level it's showing.


Zen Cart 1.3.7
Database Patch Level: 1.3.7
13 May 2007, 10:22
#19
chuckl avatar

chuckl

Totally Zenned

Join Date:
Nov 2006
Posts:
717
Plugin Contributions:
0

Re: Email Error: Could not execute: /usr/sbin/sendmail

You (or rather the upgrade process on your site) seem to somehow have skipped all or part of the 1.3.5-1.3.6 SQL database upgrade.
Could you check the project_version_history database table for any evidence of that, and the upgrade_exceptions table for any complaining about that upgrade or EMAIL_TRANSPORT in particular?
Version history is I think also shown on the Server/Version Info admin page.
13 May 2007, 10:28
#20
ellivir avatar

ellivir

Zen Follower

Join Date:
Sep 2005
Posts:
444
Plugin Contributions:
0

Re: Email Error: Could not execute: /usr/sbin/sendmail

Chuckl:

You (or rather the upgrade process on your site) seem to somehow have skipped all or part of the 1.3.5-1.3.6 SQL database upgrade.
Could you check the project_version_history database table for any evidence of that, and the upgrade_exceptions table for any complaining about that upgrade or EMAIL_TRANSPORT in particular?
Version history is I think also shown on the Server/Version Info admin page.


v1.3.6 [2007-05-08 23:27:34] (Version Update 1.3.5->1.3.6)
v1.3.5 [2006-09-24 19:16:06] (Fresh Installation)

I look still the upgrade_exceptions...