mail() doesn't work !

Status
Not open for further replies.

unknownstorm

New Member
Messages
25
Reaction score
0
Points
0
Hi,
the mail() function doesn't work if it ran in the cronjob... this is the error:
ALERT - function within blacklist called: mail() (attacker...

If I manually run script from browser ti works fine... I've the intermediate php version!
thx
 

Brandon

Former Senior Account Rep
Community Support
Messages
19,181
Reaction score
28
Points
48
Are you using php or php-cron?
 

tnl2k7

Banned
Messages
3,131
Reaction score
0
Points
0
Can you please post the contents of the cronjob for a member of staff to help you with?

-Luke.
 

tnl2k7

Banned
Messages
3,131
Reaction score
0
Points
0
Just the cronjob, we know there's no problem with the script because it works fine when executed via a browser :). We only need the command, none of the timing or anything.

-Luke.
 

unknownstorm

New Member
Messages
25
Reaction score
0
Points
0
this is the cronjob row:
/usr/local/bin/php -q ./www/sendMail.php

Note: the job is ran... but its output is error...
 

unknownstorm

New Member
Messages
25
Reaction score
0
Points
0
Tried.... this is the error output :
X-Powered-By: PHP/5.2.5
Set-Cookie: PHPSESSID=bd9655c0e98585deb8a5ddfdefca265a; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-type: text/html
 
Last edited:

Corey

I Break Things
Staff member
Messages
34,553
Reaction score
204
Points
63
I don't see an error, are you getting a specific error message?
 
Status
Not open for further replies.
Top