Solved

disable_functions and mail

Posted on 2011-03-04
5
791 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 38

Expert Comment

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

Author Comment

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

0
 
LVL 38

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 24

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 24

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.
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
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…

919 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now