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)
Anti-Spam Guide
User avatar
open-your-eyes
Registered User
Posts: 99
Joined: Mon Jul 31, 2017 8:20 am

Send email copy to the admin

Post by open-your-eyes »

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.
Last edited by Mick on Sat Jun 16, 2018 8:23 am, edited 1 time in total.
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26866
Joined: Fri Aug 29, 2008 9:49 am

Re: Send email copy to the admin

Post by Mick »

Seeing as how you’re looking for something that changes the way vanilla phpBB works you need an extension. Also please note, you should request it for 3.2 as well as 3.1 as 3.1 is EOL on July 1st and there’ll be no support for 3.1 after that.
  • "The more connected we get the more alone we become” - Kyle Broflovski© 🇬🇧
User avatar
open-your-eyes
Registered User
Posts: 99
Joined: Mon Jul 31, 2017 8:20 am

Re: Send email copy to the admin

Post by open-your-eyes »

Thanks.
Sorry about not posting in the right area.
Please, move it here: viewforum.php?f=496
User avatar
KevC
Support Team Member
Support Team Member
Posts: 72612
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK

Re: Send email copy to the admin

Post by KevC »

-:|:- Support Request Template -:|:-
Image
"Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb"
User avatar
open-your-eyes
Registered User
Posts: 99
Joined: Mon Jul 31, 2017 8:20 am

Re: Send email copy to the admin

Post by open-your-eyes »

Thank you Kev, but it's not what I'm searching for. I want an exact copy of the registration mail. I need to add BCC.
User avatar
KevC
Support Team Member
Support Team Member
Posts: 72612
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK

Re: Send email copy to the admin

Post by KevC »

That gives you all of the information but without the unnecessary 'welcome' wording. So you're not losing anything you need.
-:|:- Support Request Template -:|:-
Image
"Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb"
User avatar
open-your-eyes
Registered User
Posts: 99
Joined: Mon Jul 31, 2017 8:20 am

Re: Send email copy to the admin

Post by open-your-eyes »

I want to add BCC. Nothing else.
User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 6792
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James

Re: Send email copy to the admin

Post by HiFiKabin »

BBCode works on the forum NOT in an email. If you achieved what it appears you are requesting the email would similar to this:-

Code: Select all

Welcome to phpBB 3.2.x forums

Please keep this email for your records. Your account information is as
follows:

----------------------------
Username: [b]Testing Member[/b]

Board URL: [url=https://forum.com]Link[/url]
----------------------------

Please visit the following link in order to activate your account:

[url=https://forum.com/ucp.php?mode=activate&u=53&k=8MN3CWK5S6]Activate My Account[/url]

Your password has been securely stored in our database and cannot be
retrieved. In the event that it is forgotten, you will be able to reset it
using the email address associated with your account.

Thank you for registering.

-- 
Thanks, The Management

User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 6792
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James

Re: Send email copy to the admin

Post by HiFiKabin »

Mis understood the question, Ignore
User avatar
KevC
Support Team Member
Support Team Member
Posts: 72612
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK

Re: Send email copy to the admin

Post by KevC »

open-your-eyes wrote: Sat Jun 16, 2018 11:08 am Thank you Kev, but it's not what I'm searching for. I want an exact copy of the registration mail. I need to add BCC.
But what difference does it make to have the useless wording in it along with the actual useful information like the username, email etc?
-:|:- Support Request Template -:|:-
Image
"Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb"
User avatar
open-your-eyes
Registered User
Posts: 99
Joined: Mon Jul 31, 2017 8:20 am

Re: Send email copy to the admin

Post by open-your-eyes »

Well, useless or not, this is what I want. :D :mrgreen:
User avatar
martti
Registered User
Posts: 914
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

Re: Send email copy to the admin

Post by martti »

But what is the motivation? Or why should anyone be motivated to write code for that?
User avatar
open-your-eyes
Registered User
Posts: 99
Joined: Mon Jul 31, 2017 8:20 am

Re: Send email copy to the admin

Post by open-your-eyes »

I've been using this on phpBB2 and I found it very useful. So now I need it again.
I don't think it is too much code to write for doing this.
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: Send email copy to the admin

Post by david63 »

open-your-eyes wrote: Sat Jun 16, 2018 1:48 pm this is what I want
Did your mother never teach you that what you want you never get?
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here
User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 6792
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James

Re: Send email copy to the admin

Post by HiFiKabin »

Please remember that everyone on here volunteers their time and skill, and (In most cases) write an extension because they are interested in what that extension will do, the challenge it will involve, or maybe just 'because'.

Saying "I want it" is not likely to encourage someone to get involved unless you can also give a clear benefit that the extension will give.

Return to “Extension Requests”