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
AbaddonOrmuz
Registered User
Posts: 405
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo Ramos
Contact:

Re: Send email copy to the admin

Post by AbaddonOrmuz » Sat Jun 16, 2018 5:55 pm

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-)
A proudly user of Arch Linux :: /r/sddm_themes

User avatar
open-your-eyes
Registered User
Posts: 60
Joined: Mon Jul 31, 2017 8:20 am

Re: Send email copy to the admin

Post by open-your-eyes » Sat Jun 16, 2018 5:57 pm

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
My forum: Under construction...

User avatar
3Di
Registered User
Posts: 12980
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: Send email copy to the admin

Post by 3Di » Sat Jun 16, 2018 6:33 pm

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
Want to compensate me for my interest? Donate
Please PM me only to request paid works. Thx.
Extensions, Scripts, MOD porting, Update/Upgrades
My development's activity º PhpStorm's proud user

User avatar
open-your-eyes
Registered User
Posts: 60
Joined: Mon Jul 31, 2017 8:20 am

Re: Send email copy to the admin

Post by open-your-eyes » Sat Jun 16, 2018 7:10 pm

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.
My forum: Under construction...

User avatar
3Di
Registered User
Posts: 12980
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: Send email copy to the admin

Post by 3Di » Sat Jun 16, 2018 7:26 pm

Very kind of you. Thx.

Mission accomplished then, enjoy yourself. :)
Want to compensate me for my interest? Donate
Please PM me only to request paid works. Thx.
Extensions, Scripts, MOD porting, Update/Upgrades
My development's activity º PhpStorm's proud user

Post Reply

Return to “Extension Requests”

Who is online

Users browsing this forum: cachete and 15 guests