27.02.2012, 01:39
Quote:
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 |
PHP код:
mail(to,subject,message,headers,parameters)
(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>
-FalconX