28.01.2011, 04:59
EDIT: Maybe I see it... Wait a minute, please.
EDIT 2: WTF now it gives an 404 error... the site IS workin'!
The title says it, My mail function isn't working.
I don't know why :/ Here's my script
PHP Code
(Yes I'm sure that the IP is 94.23.146.14
PAWN Code
It always gives error code 6.
Thanks, already, for your help.
- Kevin
EDIT 2: WTF now it gives an 404 error... the site IS workin'!
The title says it, My mail function isn't working.
I don't know why :/ Here's my script
PHP Code
PHP код:
<?php
if($_SERVER['REMOTE_ADDR'] != '94.23.146.148') exit;
if(!isset($_GET['mailaddr']) && !isset($_GET['mailcont'])) exit;
mail($_GET['mailaddr'], "Mafia World : RP", $_GET['mailcont']);
?>
PAWN Code
pawn Код:
func:PlayerSendMail(playerid, mail[], mailcontent[])
{
new mailstring[500], siteurl[5000];
format(mailstring, 500, "** Mail from %s - Server RLRP ([url]www.rl-rp.com):\n\n----------\n\n%s\n\n\nPlease[/url] send a mail to contact@rl-rp.com if you think this is spam.\n\nKind Regards,\nRL-RP team", PlayerName[playerid], mailcontent);
format(siteurl, 5000, "www.mafia.rl-rp.com/functions/mail.php?mailaddr=%s&mailcont=%s", mail, mailstring);
HTTP(playerid, HTTP_POST, siteurl, mailstring, "SendMail");
return 1;
}
CB:SendMail(index, response_code, data[])
{
new str[50];
if(response_code != 200){
format(str, 50, "ERROR CODE: %d", response_code);
SendClientMessage(index, COLOR_RED, str);
return 1;
}
return 1;
}
Thanks, already, for your help.
- Kevin