Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

disable_functions and mail

Posted on 2011-03-04
5
Medium Priority
?
822 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 27

Author Comment

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

0
 
LVL 39

Accepted Solution

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

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 27

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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

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.
There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
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…
Suggested Courses

877 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