Dgital Essence Posted February 1, 2011 Share Posted February 1, 2011 Hi, ultimately I want to park a domain to my parking page when a customer registers a domain but to start with I just want to get the hang of action hooks. I have copied the following <?php function send_email_to_heds($vars) { $adminID = $vars["adminID"]; $username = $vars["adminID"]; $to = 'to_email@example.com'; $subject = 'Admin has logged into the system'; $message = 'Admin ID = '.$adminID.' Username = '.$username; $headers = 'From: from_email@example.com' . "\r\n" . 'Reply-To: from_email@example.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers); } add_hook("AdminLogin",1,"send_email_to_heds"); ?> and while it sends emails, it isn't picking up the vars at all. Where have I gone wrong please? as far as I know the Hook AdminLogin takes the var: adminID thanks. 0 Quote Link to comment Share on other sites More sharing options...
Dgital Essence Posted February 1, 2011 Author Share Posted February 1, 2011 aha, adminID should have been adminid 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.