disable_functions and mail


There is a little PHP application that is hosted on Windows server
and since 2 days the Mail function stop working with no reason.
The customer service is very slow so I investigate what can cause this issue
The script hasn't change, on the host side they said that they didn't change anything.
I have created a phpinfo page to see the existing settings and one line got my attention

disable_functions mail mail

Is this the culprit, is this line mean that they have turn off the mail function?
If this is the case will I be abe to use SMTP instead?

What else should I check?
To me everything was working fine for more then one year and no scripts modification so this mean that something have change on the server.

I know that I can change hosting company but my boss don't really want...
LVL 27
Who is Participating?
Aaron TomoskyConnect With a Mentor Technology ConsultantCommented:
Nope. Mail uses sendmail. Ppmailer connects to an smtp server either on that box or another.
Aaron TomoskyTechnology ConsultantCommented:
Phpmailer is your friend.
lenamtlAuthor Commented:
I think Phpmailer will use the same mail method

lenamtlAuthor Commented:
Finally the hosting company have fix it and I was right about
disable_functions mail
That was the problem
lenamtlAuthor Commented:
I did not use your solution but this was a good solution
so I award you the points.

Thanks for your help
All Courses

From novice to tech pro — start learning today.