Solved

disable_functions and mail

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

Easy Project Management (No User Manual Required)

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
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.
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…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

708 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

11 Experts available now in Live!

Get 1:1 Help Now