mail() problem

Status
Not open for further replies.

tsukunase

New Member
Messages
40
Reaction score
0
Points
0
warning: mail() has been disabled for security reasons in includes/common.inc on line 1979.

Can't create administrator account for CMS - I already have version 2 ("currently using this")
 

wh00p101

New Member
Messages
241
Reaction score
0
Points
0
You might have to upgrade to advanced... But I'm not 100% sure. you'll need to wait for one of the staff members to confirm this.
 

tsukunase

New Member
Messages
40
Reaction score
0
Points
0
You might have to upgrade to advanced... But I'm not 100% sure. you'll need to wait for one of the staff members to confirm this.

Intermediate PHP Configuration - You currently have this version
This version of PHP is much more relaxed in regards to security. More features are enabled compared to the default version.
  • Mail(), eval() functions allowed
 

wh00p101

New Member
Messages
241
Reaction score
0
Points
0
Ok. You're going to need to wait for a staff member to be able to assist you. Sorry my knowledge of this sites PHP settings are fairly limited as I'm only a user not a staff member.
 

capitalc

New Member
Messages
7
Reaction score
0
Points
0
I'm having the same problem... my mail() function is also disabled and I upgraded to the intermediate version. I'll keep and eye on this thread, unless anyone has any other suggestions.
 

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
This should be fixed for you now.

-Corey
 

capitalc

New Member
Messages
7
Reaction score
0
Points
0
I'm still having problems with the mail function? Is it working for anyone else?
Edit:
Two quick questions to corey, or anyone else in the know:

1. is paid hosting on the same server (and so do they have all the same php problems?)
2. do you get PHP 5.2.4 - Advanced configuration by default on paid advanced hosting plan.
 
Last edited:

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
I'm not sure why it's not working for you, your entries are correct. I'll reset them now, let me know if they work.

1.) Paid hosting is on a separate server reserved for paid clients, and no there are no PHP restrictions.

2.) You get PHP 5.2.4 and there are no special versions, it's almost all unlocked except register globals and a few other very high risk things.

-Corey
 

capitalc

New Member
Messages
7
Reaction score
0
Points
0
Thanks Corey, but still no luck unfortunately. It was all working fine before the PHP changes. Maybe I need to upgrade to the advanced version, although I have absolutely no need for exec(), passthru() or system() functions? I just don't understand what the problem is, the PHP is perfect...
Edit:
Because a number of different types of mail is sent to the user I use the following code to send it:

if (!@xmail($_POST['email'], $lang['MAILSUBJECT_NEW_POST'], $msg, $site_email, $langx['charset']))...


notice @xmail....


I'm guessing this is the problem, is their some permission associated with this function that can be turned on?
Edit:
---------------------------------------------------------------------

PROBLEM SOLVED

I figure I will just rewrite the code and use the mail(); function, its a bit of a hassle, but doesn't matter.

Thanks for the quick response Corey :) your a legend
 
Last edited:

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
Great glad this is resolved. I'm going to close this out, please re-open if further assistance is needed.

-Corey
 
Status
Not open for further replies.
Top