How can I do Password Recovery?
#1

I tried to search in the forum but with no success... How can I dod Password Recovery that send the password to email ?


Thanks
Reply
#2

Quote:
Originally Posted by tal_peretz
Посмотреть сообщение
I tried to search in the forum but with no success... How can I dod Password Recovery that send the password to email ?


Thanks
You want such system in the SA-MP server or in Website, PHP ?

-FalconX
Reply
#3

Quote:
Originally Posted by ue_falconx
Посмотреть сообщение
You want such system in the SA-MP server or in Website, PHP ?

-FalconX
You write your email in the SA-MP and it will return your password to your own email [in the website of the email]

I hope you understand me now
Reply
#4

Quote:
Originally Posted by tal_peretz
Посмотреть сообщение
You write your email in the SA-MP and it will return your password to your own email [in the website of the email]

I hope you understand me now
I don't think it's possible to do that, but yes you can do one thing which will surely work. You can make that happen through PHP website. You can use the php functions such as:-

PHP код:
mail(to,subject,message,headers,parameters
The PHP mail() function is used to send emails from inside a PHP script.

(Original link: http://php.net/manual/en/function.mail.php)

A quick example of php mails:-

PHP код:
<html>
<body>
<?php
if (isset($_REQUEST['email']))
//if "email" is filled out, send email
  
{
  
//send email
  
$email $_REQUEST['email'] ;
  
$subject $_REQUEST['subject'] ;
  
$message $_REQUEST['message'] ;
  
mail("someone@example.com""$subject",
  
$message"From:" $email);
  echo 
"Thank you for using our mail form";
  }
else
//if "email" is not filled out, display the form
  
{
  echo 
"<form method='post' action='mailform.php'>
  Email: <input name='email' type='text' /><br />
  Subject: <input name='subject' type='text' /><br />
  Message:<br />
  <textarea name='message' rows='15' cols='40'>
  </textarea><br />
  <input type='submit' />
  </form>"
;
  }
?>

</body>
</html>
You can use such ways and create a very good Password Recovery script through PHP.

-FalconX
Reply
#5

There are no plugin that help me to do it from the pawno? anyway.. I don't know php so I can't do it alone with that why .. [and even I don't have website so ...]
Reply
#6

Quote:
Originally Posted by tal_peretz
Посмотреть сообщение
There are no plugin that help me to do it from the pawno? anyway.. I don't know php so I can't do it alone with that why .. [and even I don't have website so ...]
Impossible is nothing. From the following link you get's the tutorials which can teach you a lot of good things which might be useful for you as the "mail()" function is. You can always have a talk with me regarding such things in MSN or in PM if you want.

http://www.tizag.com/phpT/

Good luck.

-FalconX
Reply
#7

Wow, of course you can do that in Pawn. Look up Slice's Mailer Script or you can even write it yourself since we have the HTTP include to GET / POST data.
Reply
#8

Quote:
Originally Posted by JamesC
Посмотреть сообщение
Wow, of course you can do that in Pawn. Look up Slice's Mailer Script or you can even write it yourself since we have the HTTP include to GET / POST data.
I just remembered that there is an mailer include of Slice, well thanks for the reminder

-FalconX
Reply
#9

Do you mean that ?

http://forum.sa-mp.com/showthread.ph...ghlight=Mailer


I don't see what I need to download there .. nothink work :\
Reply
#10

As far as I know, there is no way you can send mail from your server. What you can do in that case, is as someone said above, use HTTP() to contact a URL used to send a mail, such as "http://address.../mailer.php?from=mail@gmail.com&to=another@hotmail. com......"

Slice have made an include used to do that: https://sampforum.blast.hk/showthread.php?tid=197755
But you need to have a site to put the .php file in.

Anyway, I got to agree with ****** about passwords. If you still meaning to do this, then just make sure that the passwords are quite encrypted and all of the progress is secured.

Good luck!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)