PHP mail() not working

Status
Not open for further replies.

nolan

New Member
Messages
1
Reaction score
0
Points
0
Hi, there. I just finished creating an account because I noticed that sendmail was listed as one of the free hosting features. However, when using the php mail function, I receive the following error:

Warning: mail() has been disabled for security reasons in /home/nolan/public_html/sendit.php on line 15

I'm not a spammer or anything of that nature... I was simply looking for a free place to host a txt messaging script for a friend to text me without having to pay for it.

I have tried searching the forums and have been unable to find a solution. Perhaps I'm missing something? Or has that feature been permanently disabled and the features list just not updated?

If the latter is the case, could someone please recommend a free web hosting that allows sendmail?

Thank you for your time and energy,

Nolan
 

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
If you picked ad-free hosting it is disabled on that server by default, we're looking into enabling it on a per user basis so we can control the level of spam we've been having to deal with. Hopefully we'll have a solution for this by the end of the week.

-Corey
 

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
It is working on the server you are on.

-Corey
 

eNoyx

Member
Messages
186
Reaction score
0
Points
16
I've been doing some research about mailing in PHP if the mail() function is disabled.

There are a few free alternatives, this one should do:
http://poss.sourceforge.net/email/

And in the PHP.net info page you can find some custom alternatives for not using mail(), and some links to other projects too ;)

Bye ^^
 
Last edited:

estado3

New Member
Messages
16
Reaction score
0
Points
0
I ask because I emailed a file to myself, it worked the first time, when I tried to email the file to myself again, it didn't work, is there a limit on how many php mail() calls you can use?
 

davinci

New Member
Messages
3
Reaction score
0
Points
0
I would also like to have this enabled, if possible. I would like to be able to send an email confirmation to new registrants.
Thanks.
 

nagilum

New Member
Messages
9
Reaction score
0
Points
0
It's not working for me either.

I tested some code on another server I have access to and it works fine...but when I transfer it over to this server it doesn't work. Not getting an error per se....it just isn't sending and the function comes back false.

I thought it was included in the Advanced Account Type but correct me if I'm wrong.
 

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
PHP Mail is only disabled on the ad-free server.
 

nagilum

New Member
Messages
9
Reaction score
0
Points
0
So is there something I have to do special to make it work? I'm using the same code and it's working on one server but not on this one
Edit:
I got my problem solved. It's not letting me put the "To:" in the headers as I send it.
 
Last edited:

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
Mail is enabled temporarily while we figure out a per account solution.

-Corey
 
Status
Not open for further replies.
Top