Code: Select all
$message = "Thank you for registering.\n\n";
mail($email, 'Registration Confirmation', $message, 'From: noreply@website.com');
Problem 2: When it does work on the index.php page, the From header does not show noreply@website.com, it shows that it is from my host. How can I fix that?
Thanks.