Sending email notice to more than one email recipient

Permalink
I appreciate this tutorial but it is incomplete in it's description assuming the reader knows what files you are talking about and where in the files to put the code. I am using the template user_register_approval_required.php. The email is only sent to the super user. and the register multiple users in the the dashboard under public registration is not working for some reason. So, I want to manually code in extra recipients. Your tutorial does not tell where to put the "helper" code. Does it go on the template I am using? Above the body email? Below? I'm trying to fill in the blanks but not getting anywhere. Can someone help?

sschildbach
 
synlag replied on at Permalink Reply
synlag
Hi,

which tutorial do you mean? Can you post a link?

Thanks
sschildbach replied on at Permalink Best Answer Reply
sschildbach
The documentation or tutorial I am talking about is:http://www.concrete5.org/documentation/developers/helpers/mail/...

I'm a little embarassed to say what was causing my problems. I did find out why nothing I was trying was working: I had a old modified register.php file in the root controllers folder and it was breaking the functions being made by my updated version of Concrete5. When I replaced it with the new file of register.php found in the core and added a cc in the mail helper coding of that file, I got multiple sent emails to work.

In betweem line 146 & 147 of register.php I added:

$mh->cc('name@domain.org', 'FirstName LastName');
$mh->cc('name2@domain.org', 'FirstName LastName');


My general advise to other is when you have an old C5 site and have modified the core files and moved them to the root directory folders, as you are supposed to, sometimes those files need to be removed or reworked.
HopeL replied on at Permalink Reply
HopeL
One site I'm building uses the registration information as an application for membership. Several people need to receive the email that a new user has registered. If it would be easier, CCing a specific group of users to receive a copy of the registration notice would also work and would be better as the people within that group change from time to time. I'd rather edit the group than edit the register.php page each time. Is this post that I'm replying to (and the tutorial link included) still relevant? How would I add a specific group to be notified? I am using the Concretet5 vs. 5.6.2.1.

Thanks,
Hope