help with http func
#1

Hi all,

i have an sendmail function who use http

but when i trie to send something if i put an "SPACE" > " " it just sende what was before it, not the rest.

When i use /n it's the same.

Some one can help me?

Thank you
Reply
#2

I really dont get what you said but try \t or ~t~ that means Tab, a space the size of the tabs space.
Reply
#3

Hi,

here is my sendmail func


Код:
stock SendMail(playerid,reciever[], subject[], corps[])
{
	new string[128];
	format(string, sizeof(string), "MYWEBSITE/forgot.php?sender=%s&reciever=%s&subject=%s&message=%s",reciever,subject,corps);
	HTTP(playerid, HTTP_GET, string, "", "MailResponse");
}
Код:
SendMail(playerid,email, "Motdepasseoubliй", string);
if i do


format(.....,"I am testing my sendmail");

i will receive an mail

with:

subjet:Motdepasseoubliй
mail: I


after the space the tesxt isn't send

if i do


format(.....,"Iamtestingmysendmail");

i will get

subjet:Motdepasseoubliй
mail: Iamtestingmysendmail
Reply
#4

up, i need help
Reply
#5

You have to replace all spaces with %20
This is the url code for a space.
Reply
#6

and to do it correctly make a fun to replace all space's with + or with %20
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)