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: 59
Joined: Mon Jul 31, 2017 8:20 am

Send email copy to the admin

Post by open-your-eyes » 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.
Last edited by Mick on Sat Jun 16, 2018 8:23 am, edited 1 time in total.
My forum: Under construction...

User avatar
Mick
Support Team Member
Support Team Member
Posts: 19525
Joined: Fri Aug 29, 2008 9:49 am
Location: Cardiff

Re: Send email copy to the admin

Post by Mick » Sat Jun 16, 2018 8:07 am

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

There are no ‘threads’ in phpBB, they are topics.

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

Re: Send email copy to the admin

Post by open-your-eyes » Sat Jun 16, 2018 8:13 am

Thanks.
Sorry about not posting in the right area.
Please, move it here: viewforum.php?f=496
My forum: Under construction...

User avatar
KevC
Support Team Member
Support Team Member
Posts: 68078
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK
Contact:

Re: Send email copy to the admin

Post by KevC » Sat Jun 16, 2018 11:01 am

-:|:- Support Request Template -:|:-
Image
Cheap UK Hosting
"In the land of the blind the little green bloke with no pupils is king - init!"

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

Re: Send email copy to the admin

Post by open-your-eyes » 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.
My forum: Under construction...

User avatar
KevC
Support Team Member
Support Team Member
Posts: 68078
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK
Contact:

Re: Send email copy to the admin

Post by KevC » Sat Jun 16, 2018 11:24 am

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
Cheap UK Hosting
"In the land of the blind the little green bloke with no pupils is king - init!"

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

Re: Send email copy to the admin

Post by open-your-eyes » Sat Jun 16, 2018 11:28 am

I want to add BCC. Nothing else.
My forum: Under construction...

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

Re: Send email copy to the admin

Post by HiFiKabin » Sat Jun 16, 2018 12:44 pm

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: 2917
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James
Contact:

Re: Send email copy to the admin

Post by HiFiKabin » Sat Jun 16, 2018 12:47 pm

Mis understood the question, Ignore

User avatar
KevC
Support Team Member
Support Team Member
Posts: 68078
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK
Contact:

Re: Send email copy to the admin

Post by KevC » Sat Jun 16, 2018 1:45 pm

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
Cheap UK Hosting
"In the land of the blind the little green bloke with no pupils is king - init!"

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

Re: Send email copy to the admin

Post by open-your-eyes » Sat Jun 16, 2018 1:48 pm

Well, useless or not, this is what I want. :D :mrgreen:
My forum: Under construction...

User avatar
martti
Registered User
Posts: 566
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

Re: Send email copy to the admin

Post by martti » Sat Jun 16, 2018 5:20 pm

But what is the motivation? Or why should anyone be motivated to write code for that?

User avatar
open-your-eyes
Registered User
Posts: 59
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:24 pm

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

User avatar
david63
Jr. Extension Validator
Posts: 14441
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: Send email copy to the admin

Post by david63 » Sat Jun 16, 2018 5:42 pm

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!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

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

Re: Send email copy to the admin

Post by HiFiKabin » Sat Jun 16, 2018 5:48 pm

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.

Post Reply

Return to “Extension Requests”

Who is online

Users browsing this forum: No registered users and 9 guests