I have set up a registration form which works fine. Currently though it only sends a confirmation to the user, I would also like an email sent to admin firstname.lastname@example.org.
Any ideas how to do this?
I have attached the code which applies to sending the user email...
// Send the email:
$body = "Thank you for registering at <whatever site>. To activate your account, please click on this link:\n\n";
$body .= BASE_URL . 'activate.php?x=' . urlencode($e) . "&y=$a";
mail($trimmed['email'], 'Registration Confirmation', $body, 'From: email@example.com');