Page 1 of 1

php.ini oder emails

Posted: Mon Sep 22, 2014 5:08 pm
by drbyte
We have a strange issue

Suddenly we stooped receiving order emails and called the hosting company without any luck. So I decided to look closely at the php.ini file and I discovered by renaming that file to something like php.ini.somethingelase we get order emails back.

The hosting company said that we have to make the php.ini recursive

suPHP_ConfigPath /home/username/public_html, i changed the usename off course

But that did not work. The only way to get our orders emails if by renaming that file.

But with that, the site does not seem to be 100%, the backend is kinda slow or not stable. Not sure if the memory is the problem.

Has anybody encountered this issue?

We have

Opencart 1.5.6.4
inmotionhosting
PHP version 5.4.32
MySQL version 5.6.17

Thank you

Re: php.ini oder emails

Posted: Tue Sep 23, 2014 1:51 am
by SXGuy
Yes had the same problem recently. The root ini file was conflicting with hosts ini file and causing emails to not be sent. Only happend when payment methods were used. Free checkouts were fine. Seemed the issue was with cURL libraries.

Re: php.ini oder emails

Posted: Tue Oct 21, 2014 8:38 am
by mab213
Since September we have been having the same issues with Inmotionhosting. When we renamed the php.ini files we are getting order and new customer registrant emails with the PHP mail function BUT we cannot send any Sales > Mail emails out.

The really strange part is that if I put in SMTP settings with the server localhost, go into Sales > Mail, select 1 customer it works fine. It will not let us send any mass mails out to all customers. Also, SMTP won't send out any notification emails, only the Sales>Mail emails. I might have to look into moving hosting.

Re: php.ini oder emails

Posted: Tue Oct 21, 2014 10:59 pm
by mab213
drbyte,

Found a solution to the problem.

php.ini under public_html needs to be changed from:

Code: Select all

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
sendmail_path = "/usr/sbin/sendmail -t -i"
to

Code: Select all

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
sendmail_path = /usr/sbin/sendmail -t -i

Re: php.ini oder emails

Posted: Thu Oct 23, 2014 3:49 am
by heebgb
Thanks mab213 for posting this solution! I was having the exact same issues since mid Sept with InMotion and was not able to resolve the issue until we tried your solution. Thank-you!