Solved

disable_functions and mail

Posted on 2011-03-04
5
798 Views
Last Modified: 2012-05-11
Hi,

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...
Thanks
0
Comment
Question by:lenamtl
  • 3
  • 2
5 Comments
 
LVL 39

Expert Comment

by:Aaron Tomosky
ID: 35035832
Phpmailer is your friend.
0
 
LVL 25

Author Comment

by:lenamtl
ID: 35036363
I think Phpmailer will use the same mail method

0
 
LVL 39

Accepted Solution

by:
Aaron Tomosky earned 125 total points
ID: 35036772
Nope. Mail uses sendmail. Ppmailer connects to an smtp server either on that box or another.
0
 
LVL 25

Author Comment

by:lenamtl
ID: 35037757
Finally the hosting company have fix it and I was right about
disable_functions mail
That was the problem
 
0
 
LVL 25

Author Closing Comment

by:lenamtl
ID: 35037772
I did not use your solution but this was a good solution
so I award you the points.

Thanks for your help
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
This article discusses how to create an extensible mechanism for linked drop downs.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question