Back to V3Tweaks
Question Asked
How can I send out an email to the siteadmin when a new member signs up
Original Forum Post
Solution
You will need to edit 1 file. So get your text editor ready. As always we recommend a php editor like
EditPlus
STEP 1
Download the following files from your FTP and save them anywhere on your computer
STEP 2
Edit
join.php
Find the section with the following code
// send email
$email_template = 'email_templates/newmember.htm';
$subject = $config['email_welcome'];
$to = $email_address;
$from = $config['notifications_from_email'];
Replace the above code with the following code
Make changes as necessary anywhere you see
CHANGE THIS in the code below
//send email
$email_template = 'email_templates/newmember.htm';
$subject = $config['email_welcome'];
$to = $email_address;
$from = $config['notifications_from_email'];
//--------------------------V3 Tweak - Send admin an email on new user registration --------------------------------
$admin_email = 'admin@yourdomain.com'; //CHANGE THIS - you should change this to your email
$admin_subject = 'A new member has just joined';
$admin_message = "$user_name has just signed up";
$admin_from = $config["from_system_name"];
@mail($admin_email,$admin_subject,$admin_message,"From: $admin_from <$from>");
//-------------------------------------------------------------------------------------------------------------------
STEP 3
Upload all the files you edited back into their respective places in your FTP.
Thats its, now every time a new members signs up, you will get an email notification