Thank you for registering at Stunts-Paradise S-P Community. Your username is [YG]Frede. If you forget your password, you may change it at http://stunts-paradise.com/index.php?action=reminder. Regards, The Stunts-Paradise S-P Community Team. |
new pname[MAX_PLAYER_NAME], str[150];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(str, sizeof(str), "e=%s&n=%s",PlayerInfo[playerid][email], pname);//You will of cause need to have a place where you get the persons email
HTTP(playerid, HTTP_POST, "stunts-paradise.com/mail.php", str, "MyHttpResponse"); //since my website is stunts-paradise.com, then ill use my website
<?php
if(empty($_POST['e'])||empty($_POST['n']))
{
?>
<form name="input" action="mail.php" method="post">
email: <input type="text" name="e" /> <br />
name: <input type="text" name="n" /> <br />
<input type="submit" value="Submit" />
</form>
<?php
}
else
{
$to = $_POST['e'];
$name = $_POST['n'];
// subject
$subject = '';
// message
$message = '';
// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
// Additional headers
$headers .= 'To: '.$name.' <'.$to.'>' . "\r\n";
$headers .= 'From: Frederik Vester <Frederik@example.com>' . "\r\n";
// Mail it
mail($to, $subject, $message, $headers);
echo($message);
}
?>
<?php
if(empty($_POST['e'])||empty($_POST['n']))
{
?>
<form name="input" action="mail.php" method="post"> email: <input type="text" name="e" /> <br /> name: <input type="text" name="n" /> <br /> <input type="submit" value="Submit" /> </form>
<?php
}
else
{
$to = $_POST['e']; //get the post called "e" that is our email
$name = $_POST['n']; //get the post called "n" that is our name
// subject
$subject = ' '; //This is of cause our subject, selfexplaining
// message
$message = ' '; //This is the mail itself, right now it is a total empty mail, we are going to post some HTML in later.
// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
// Additional headers
$headers .= 'To: '.$name.' <'.$to.'>' . "\r\n";
$headers .= 'From: Frederik Vester <Frederik@example.com>' . "\r\n";
mail($to, $subject, $message, $headers); //simply mail it
echo($message); //show us the message we send, you can comment this if you want
}
?>
<!--text here-->
<html> <head> <title>Stunts-Paradise - Welcome mail</title> <div style="background:#F00000; border-radius: 15px; width:2000px; color:FFFFFF";><table border="1"> <tr><td><a href="http://stunts-paradise.com"><img src="http://stunts-paradise.com/img/logo.png"></img></a></td> <td><a href="http://stunts-paradise.com/?page=home"><h1 style="color:white; width:200px;"><center>HOME</center></h1></a></td><td><a href="http://forum.stunts-paradise.com/"><h1 style="color:white; width:200px;"><center>FORUM</center></h1></td><td><a href="http://stunts-paradise.com/?page=download"><h1 style="color:white; width:200px;"><center>DOWNLOADS</center></h1></td><td><a href="http://stunts-paradise.com/?page=info&p='.$name.'"><h1 style="color:white; width:200px;"><center>UCP profile</center></h1></td></tr></table></div> </head> <body> <center> <table style="background:#00BBBB; border-radius:15px;"> <tr> <td> <center><a href="http://stunts-paradise.com"><img src="http://stunts-paradise.com/img/sigle.png"></img></a> <br> <h1 style="color:green"> Welcome to stunts paradise.com we hobe you will enjoy your stay </h1></center></td> </tr> </table> </center> <center><p style="background:#000; border-radius: 15px; color:#FFFFFF"> Copyright© 2013-2014 - stunts-paradise.com</p> </center> </body> </html>
<html><!--show the browser that this is HTML--> <head> <title>Stunts-Paradise - Welcome mail</title><!--title of the mail--> <div><table border="1"><!--this will show a table with alot small boxes, border is so we can see where the box end and the new start--> <tr><td><!--show start the first line in the table and place it--> <a href="http://stunts-paradise.com"><!--this is a start of a link--><img src="http://stunts-paradise.com/img/logo.png"><!--start of a picture - here a LOGO--></img><!--end of the pic tag--></a><!--end of the link--></td><!--new box in the table--> <td><a href="http://stunts-paradise.com/?page=home"><!--again a link--><h1><!--This will get the HOME to look mutch better--><center><!--will but the HOME in the mittle of the box-->HOME</center></h1></a></td><td><a href="http://forum.stunts-paradise.com/"><h1><center>FORUM</center></h1></td><td><a href="http://stunts-paradise.com/?page=download"><h1><center>DOWNLOADS</center></h1></td> <td><a href="http://stunts-paradise.com/?page=info&p='.$name.'"><!--this is both HTML and PHP--><h1><center>UCP profile</center></h1> </td></tr></table></div> </head>
<?php
if(empty($_POST['e'])||empty($_POST['n']))
{
?>
<form name="input" action="mail.php" method="post">
email: <input type="text" name="e" /> <br />
name: <input type="text" name="n" /> <br />
<input type="submit" value="Submit" />
</form>
<?php
}
else
{
$to = $_POST['e'];
$name = $_POST['n'];
// subject
$subject = 'Welcome to Stunts-Paradise.com';
// message
$message = '
<html>
<head>
<title>Stunts-Paradise - Welcome mail</title>
<div style="background:#F00000; border-radius: 15px; width:2000px; color:FFFFFF";><table border="1">
<tr><td><a href="http://stunts-paradise.com"><img src="http://stunts-paradise.com/img/logo.png"></img></a></td>
<td><a href="http://stunts-paradise.com/?page=home"><h1 style="color:white; width:200px;"><center>HOME</center></h1></a></td><td><a href="http://forum.stunts-paradise.com/"><h1 style="color:white; width:200px;"><center>FORUM</center></h1></td><td><a href="http://stunts-paradise.com/?page=download"><h1 style="color:white; width:200px;"><center>DOWNLOADS</center></h1></td><td><a href="http://stunts-paradise.com/?page=info&p='.$name.'"><h1 style="color:white; width:200px;"><center>UCP profile</center></h1></td></tr></table></div>
</head>
<body>
<center>
<table style="background:#00BBBB; border-radius:15px;">
<tr>
<td>
<center><a href="http://stunts-paradise.com"><img src="http://stunts-paradise.com/img/sigle.png"></img></a>
<br>
<h1 style="color:green">
Welcome to stunts paradise.com we hobe you will enjoy your stay
</h1></center></td>
</tr>
</table>
</center>
<center><p style="background:#000; border-radius: 15px; color:#FFFFFF">
Copyright© 2013-2014 - stunts-paradise.com</p>
</center>
</body>
</html>';
// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
// Additional headers
$headers .= 'To: '.$name.' <'.$to.'>' . "\r\n";
$headers .= 'From: Frederik Vester <Frederik@example.com>' . "\r\n";
// Mail it
mail($to, $subject, $message, $headers);
echo($message);
}
?>
<a href="http://******.com"><p style="color:green; background:#F00000;">some text</p></a>