This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

php mail
#1
php mail
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 
Reply
Thanks given by:
#2
RE: php mail
(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
Reply
Thanks given by:
#3
RE: php mail
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
No support using PM (Auto adding to IGNORE list!), use the forum. 
How to ask
Freelance AWS Certified Architect & SysOps// DevOps

10$ free to start your VPS
Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
Get TLS/SSL for Sentora Mail EGOSKY123 5 11 ,969 07-25-2020, 04:03 PM
Last Post: 5050
Connecting to mail on other clients (iphone) mohamedh 7 12 ,916 02-04-2019, 09:06 PM
Last Post: mohamedh
mail() don't working BigBang 3 7 ,162 08-13-2018, 08:32 AM
Last Post: wormsunited

Forum Jump:


Users browsing this thread: 1 Guest(s)