Send email copy to the admin

Looking for an Extension? Have an Extension request? Post your request here for help. (Note: This forum is community supported; while there is an Extensions Development Team, said team does not dedicate itself to handling requests in this forum)
Scam Warning
User avatar
AlfredoRamos
Recognised Extension Developer
Posts: 1302
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo
Contact:

Re: Send email copy to the admin

Post by AlfredoRamos »

open-your-eyes wrote: Sat Jun 16, 2018 5:24 pm I don't think it is too much code to write for doing this.
Then you can do it yourself 8-)
Some of my phpBB extensions:
:chart_with_upwards_trend: SEO Metadata | Image Markdown | :shield: hCaptcha
:trophy: Check out all my validated extensions :trophy:

:penguin: Arch Linux user | Linux Boards :penguin:
User avatar
open-your-eyes
Registered User
Posts: 94
Joined: Mon Jul 31, 2017 8:20 am
Contact:

Re: Send email copy to the admin

Post by open-your-eyes »

I do not think it will be too much trouble to just add BCC to registration e-mails. I'm not a programmer, but I see in phpBB2 was very easy to do.
If someone can do this for me, please, send me a PM.
Last edited by HiFiKabin on Sat Jun 16, 2018 6:05 pm, edited 1 time in total.
Reason: Solicitation Deleted
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

Re: Send email copy to the admin

Post by 3Di »

open-your-eyes wrote: Sat Jun 16, 2018 12:44 am I want a copy of the registration email to be sent to the admin. Here is how it was done in phpBB2:

Code: Select all

OPEN
includes/usercp_register.php

FIND
         include($phpbb_root_path . 'includes/emailer.'.$phpEx);
         $emailer = new emailer($board_config['smtp_delivery']);

         $emailer->from($board_config['board_email']);
         $emailer->replyto($board_config['board_email']);

AFTER, ADD
         // Send email to the admin
         $emailer->bcc($board_config['board_email']);
Thank you.
Open includes/ucp/ucp_register.php and find

$messenger->to($data['email'], $data['username']);

after, on a new line, add

$messenger->bcc($config['board_email'], $data['username']);

Not tested. :P
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
open-your-eyes
Registered User
Posts: 94
Joined: Mon Jul 31, 2017 8:20 am
Contact:

Re: Send email copy to the admin

Post by open-your-eyes »

Thank you so much, man. You are the greatest!
I just donated 10 euro to you.
Maybe, in the future, we'll colaborate again. It would be my pleasure.
Thanks a million.
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

Re: Send email copy to the admin

Post by 3Di »

Very kind of you. Thx.

Mission accomplished then, enjoy yourself. :)
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
Post Reply

Return to “Extension Requests”