Weird error when I try to send an email with HTTP function

So I tried to send an email with a php code for an account confirmation, all good untill I type my email then I get this

Edit: Error 400 Bad Request

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"


<html xmlns="" lang="en" xml:lang="en">


<title>Bad request!</title>

<link rev="made" href="mailto:postmaster@localhost" />

<style type="text/css"><!--/*--><![CDATA[/*><!--*/ 

    body { color: #000000; background-color: #FFFFFF; }

    a:link { color: #0000CC; }

    p, address {margin-left: 3em;}

    span {font-size: smaller;}




<h1>Bad request!</h1>


    Your browser (or proxy) sent a request that

    this server could not understand.



If you think this is a server error, please contact

the <a href="mailto:postmaster@localhost">webmaster</a>.


<h2>Error 400</h2>


  <a href="/">localhost</a><br />

  <span>Apache/2.4.33 (Win32) OpenSSL/1.0.2o PHP/5.6.36</span>



What I used to form the link to send
				format(message, sizeof(message), "Hello %s, this is an email for account confirmation\n.Your Key code is %s", GetUserName(playerid), key);
				for(new i = 0; i < strlen(message); i++)
				    if( message[i] == ' ' )
				        message[i] = '-';
				format(link, sizeof(link), "", key, P_Account[playerid][email], message);
				printf("%s", link);
				HTTP(playerid, HTTP_GET, link, " ", "OnConfirmationPending");


Forum Jump:

Users browsing this thread: 1 Guest(s)