Hi all, I would like to be able to receive a copy of all emails sent out to new registered users. I have found this in userjoin.php $to = trim($_POST['email']); and I know I need to use the following to receive the copy email: $to=$rs['email'] .',[email protected]'; My issue is I am not sure what context I set it up to correctly receive it. would this be it ? $to = trim($_POST['email.',[email protected]']); Many Thanks Jason
Jason, Before doing this, I would strongly suggest that you seriously consider and look into the privacy laws where you are! Privacy is a huge and controversial issue right now and what you can and can not do are also dictated by laws in your country and in some countries, even more local governing laws as well. At the very least, you may need to notify your potential registered users that email communications are monitored and/or stored prior to actually sending these email(s). Passwords are encrypted prior to being stored in the database for a REASON! Sending yourself a copy of these emails with that information unencrypted could be a privacy violation as well as a liability, especially if you are receiving and storing this information on your computer or another computer on the internet (e.g. your email service provider if using IMAP or other webmail).
Point taken, Mike It was really a case of being informed when a new user registers on my site, that was all really. I don't suppose there is a way around this is there ?
There is currently no built in way around this. There is however a call_hook call for a module that could be used when a user submits the registration form. In the userjoin.php file around line #199: $modules->call_hook('userjoin_submit', ''); // Call any module functions