Guestbook notify email - using multiple addresses?
Permalink
Hi, when someone posts a comment using the guestbook block we want the notifications to go to multiple email addresses. I've tried comma delimiting, and comma+space delimiting but the mails are never sent. Sending to a single email address works fine. Any advice on how to fix this?
This is exactly what I am trying to do. I have tried using the code but I can't seem to get it working. I think I have the foreach loop in the wrong place. Where would that code go?
Thanks for your help
Update:
I had the end bracket in the wrong place. I now have it working.
Thanks for your help
Update:
I had the end bracket in the wrong place. I now have it working.
Hello,
Are you aware that, if you modified the block directly, you will lose your modifications next time you upgrade Concrete5?
The proper way of doing it is to override the block's controller by putting a copy in blocks\guestbook and modify that one.
Are you aware that, if you modified the block directly, you will lose your modifications next time you upgrade Concrete5?
The proper way of doing it is to override the block's controller by putting a copy in blocks\guestbook and modify that one.
Actual it looks like this in the controller.php on line 169
Solution:
first save the mailaddresses with a separator, for example ','. then split the address with this separator:
Now you can use the whole code from the beginning in a foreach and call it for every emailaddress
it would also be possible to use more then one
I hope you understand what I mean, otherwise don't hesitate to ask further questions.