Dear subwayman
where is the problem on my script?
In the registration form, I get the first_name and last_name. No mail address needed as all have the same server address (@samecompany.com).
My script:
<html>
<head>
<title>password_request1</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?php // Script 5.2 - password_request1.php
// Address error handing.
ini_set ('display_errors', 1);
error_reporting (E_ALL & ~E_NOTICE);
// In case register_globals is disabled.
$first_name = $POST['first_name'];
$last_name = $POST['last_name'];
$posting = $_POST['posting'];
// Create a name variable.
$name=$first_name;
$full_name=$firstname.$lastname;
$full_email = $full_name.'@samecompany.com';
// Print the message.
print "Thank you, <font color=\"red\">$name,</font> for your request. Check your inbox at crewmail for username and password.<br />
<p>$posting</p>";
// Send the email.
$body = "Thank you for visiting www.blablabla Login: username=x, password=y";
mail ($_POST['full_email'], 'blablabla', $body, "From: [email]@swiss.com\r\nBcc:cspm@tele2.ch[/email]");
?>
</body>
</html>
</body>
</html>
Do you know the reason why the one who register doesn't receive a email?
Thanks very much