Email Display Name

Looking for a MOD? Have a MOD request? Post here for help. (Note: This forum is community supported; phpBB does not have official MOD authors)
Get Involved
User avatar
jsoni
Registered User
Posts: 355
Joined: Mon Aug 02, 2010 3:55 pm
Location: Mauritius
Contact:

Email Display Name

Post by jsoni »

Friends,
All is well :)
BUT

I want to change display name of email notification.

as you can see in above image, its showing my email ID (xxx@mydomain.com) i want some other name like "Pixel and Grain - Forums" like that. How can i change that? Please guide me.
Last edited by jsoni on Tue Nov 30, 2010 1:04 pm, edited 2 times in total.
PM me for phpbb modification
Not phpbb or php master but can help you to gain my knowledge.
On your own risk :)
For graphics and animation PM me.
Forum:http://www.pixelandgrain.in/

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

Re: Email Display Name

Post by KevC »

You've cut your picture so small it's difficult to know where that is.
-:|:- 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
jsoni
Registered User
Posts: 355
Joined: Mon Aug 02, 2010 3:55 pm
Location: Mauritius
Contact:

Re: Email Display Name

Post by jsoni »

Kevin Clark wrote:You've cut your picture so small it's difficult to know where that is.
That is in red box. "xxx@mydomain.com" I want to change it to some other text like "Pixel and Grain - Forums" or something like that how can I change that?
Last edited by jsoni on Sun Oct 17, 2010 9:11 am, edited 1 time in total.
PM me for phpbb modification
Not phpbb or php master but can help you to gain my knowledge.
On your own risk :)
For graphics and animation PM me.
Forum:http://www.pixelandgrain.in/

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

Re: Email Display Name

Post by KevC »

Yes but where is that on your forum?

There's no context to the picture to know where that red box is.
-:|:- 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
jsoni
Registered User
Posts: 355
Joined: Mon Aug 02, 2010 3:55 pm
Location: Mauritius
Contact:

Re: Email Display Name

Post by jsoni »

O o I think here some misunderstanding is going on. Maybe I didn't explain properly what I am looking for.

Okay here is the case:

Member gets notification email for them subscribed post on each reply, which send by webmaster, here is "admin@pixelandgrain.in". So when they received email that emails display sender name as "admin@pixelandgrain.in" that you can see in the first attached image covered with red box. I want to change that sender display name from "admin@pixelandgrain.in" to "Pixel and Grain - Forums" So how can I change that sender display name?

Image
PM me for phpbb modification
Not phpbb or php master but can help you to gain my knowledge.
On your own risk :)
For graphics and animation PM me.
Forum:http://www.pixelandgrain.in/

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

Re: Email Display Name

Post by KevC »

Do you mean that picture is from your email application, like hotmail or gmail? You should have said that.

Those mail readers are doing their job. The person receiving would have to set your site up as a contact in their address book so it then interprets the email to belong to your site.
-:|:- 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
jsoni
Registered User
Posts: 355
Joined: Mon Aug 02, 2010 3:55 pm
Location: Mauritius
Contact:

Re: Email Display Name

Post by jsoni »

Yeh thats my outlook printscreen. sorry I didn't mentioned that. :P

But can't I change it to what I said?
PM me for phpbb modification
Not phpbb or php master but can help you to gain my knowledge.
On your own risk :)
For graphics and animation PM me.
Forum:http://www.pixelandgrain.in/

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

Re: Email Display Name

Post by KevC »

I don't think so. I think it takes the email address and matches it to a saved contact in your contacts list and then shows the name instead of the email address. That's outside of what phpBB is providing.
-:|:- 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
jsoni
Registered User
Posts: 355
Joined: Mon Aug 02, 2010 3:55 pm
Location: Mauritius
Contact:

Re: Email Display Name

Post by jsoni »

As i believe there should be some settings like in outlook you define your display name while setting up your account. In phpbb something should be there! or may be need to modify any php or so
PM me for phpbb modification
Not phpbb or php master but can help you to gain my knowledge.
On your own risk :)
For graphics and animation PM me.
Forum:http://www.pixelandgrain.in/

nomulous
Registered User
Posts: 1
Joined: Sun Oct 10, 2010 9:41 pm

Re: Email Display Name

Post by nomulous »

I had the same problem, but I hacked together a fix. The solution is on my blog: http://nomulous.com/blog/notification-e ... in-phpbb3/

User avatar
jsoni
Registered User
Posts: 355
Joined: Mon Aug 02, 2010 3:55 pm
Location: Mauritius
Contact:

Re: Email Display Name

Post by jsoni »

nomulous wrote:I had the same problem, but I hacked together a fix. The solution is on my blog: http://nomulous.com/blog/notification-e ... in-phpbb3/
Thanks my friend, I really appreciate.

But everything goes over the HEAD :P
May be because I am not that sound in php or I didn't understand table stuffs.. Is there any easy way to understand? :(
PM me for phpbb modification
Not phpbb or php master but can help you to gain my knowledge.
On your own risk :)
For graphics and animation PM me.
Forum:http://www.pixelandgrain.in/

TiTex
Registered User
Posts: 79
Joined: Sun Jul 06, 2008 1:27 pm

Re: Email Display Name

Post by TiTex »

it's very simple to do this ...

open inclues/functions_messenger.php
find

Code: Select all

    /**
    * Return email header
    */
    function build_header($to, $cc, $bcc)
    { 
in this function find

Code: Select all

$headers[] = 'From: ' . $this->from; 
replace with

Code: Select all

//$headers[] = 'From: ' . $this->from;
$headers[] = 'From: Pixel and Grain - Forums ' . $this->from; 

User avatar
jsoni
Registered User
Posts: 355
Joined: Mon Aug 02, 2010 3:55 pm
Location: Mauritius
Contact:

Re: Email Display Name

Post by jsoni »

TiTex wrote:it's very simple to do this ...

open inclues/functions_messenger.php
find

Code: Select all

    /**
    * Return email header
    */
    function build_header($to, $cc, $bcc)
    {
in this function find

Code: Select all

$headers[] = 'From: ' . $this->from;
replace with

Code: Select all

//$headers[] = 'From: ' . $this->from;
$headers[] = 'From: Pixel and Grain - Forums ' . $this->from;
hello......WOW..!!! It's working... superb.... thank you so much..... :D
PM me for phpbb modification
Not phpbb or php master but can help you to gain my knowledge.
On your own risk :)
For graphics and animation PM me.
Forum:http://www.pixelandgrain.in/

TiTex
Registered User
Posts: 79
Joined: Sun Jul 06, 2008 1:27 pm

Re: Email Display Name

Post by TiTex »

no problem, i'm glad that i could help

User avatar
jsoni
Registered User
Posts: 355
Joined: Mon Aug 02, 2010 3:55 pm
Location: Mauritius
Contact:

Re: Email Display Name

Post by jsoni »

TiTex wrote:no problem, i'm glad that i could help
Again thanks and appreciate :)
PM me for phpbb modification
Not phpbb or php master but can help you to gain my knowledge.
On your own risk :)
For graphics and animation PM me.
Forum:http://www.pixelandgrain.in/

Locked

Return to “[3.0.x] MOD Requests”