Sentora Support Forums
php mail - Printable Version

+- Sentora Support Forums (https://senforums.mach-hosting.com)
+-- Forum: Sentora Forum Archives (https://senforums.mach-hosting.com/forumdisplay.php?fid=5)
+--- Forum: Sentora Public Support Forums v1.0.x (https://senforums.mach-hosting.com/forumdisplay.php?fid=32)
+---- Forum: General Support Forum v1.0.x (https://senforums.mach-hosting.com/forumdisplay.php?fid=36)
+---- Thread: php mail (/showthread.php?tid=2800)



php mail - mypomme - 04-27-2016

Hello

I have whmcs on my sentora hosting and another website with script for contact. All use the phpmail

So when whmcs send a email.. a error occured : Could not instantiate mail function.

Sorry for my english i'm french

Thanks for your help 


RE: php mail - mypomme - 04-27-2016

(04-27-2016, 12:46 AM)mypomme Wrote: Hello

I have whmcs on my sentora hosting and another website with script for contact. All use the phpmail

So when whmcs send a email.. a error occured : Could not instantiate mail function.

Sorry for my english i'm french

Thanks for your help 

Sorry 

Modify the line in /etc/php.ini

sendmail_path = /usr/sbin/sendmail -t -i to sendmail_path = /usr/sbin/sendmail.postfix -t -i


RE: php mail - Me.B - 05-01-2016

Pas de problème.

Could you check log files? for error.

Also why changing the php.ini. Mail() function works fine without setting sendmail.

Notice you don't need to change php.ini as:

/usr/sbin/sendmail alias of -> /etc/alternatives/mta
and
/etc/alternatives/mta alias of -> /usr/sbin/sendmail.postfix

M B