UserFullName in E-mail From: Header

17 years 9 months ago #17964 by mischa
UserFullName in E-mail From: Header was created by mischa
Hi there Community,


I've been using CB now for some time for my upcoming site. It will be completely based on usernames instead of full-names. I ran into a problem with this in combination with sending E-Mails.

There is a setting in Backend-Tab > Community Builder > Configuration > General-Tab, where I can (and have made) make the setting called Name Format. I've set this to Username Only.

Despite the above, when I am logged in as registered user, goto the "memberlist", select a member, goto Messages, Send Email, CB makes a mail with the following info in the From: Header:

From: "UserFullName @ SiteName" <RecieverEMailAdress>


Is there any place known where I can adjust this to something like this:

From: "UserFullName @ SiteName" <RecieverEMailAdress>

Thus without the red-parts!! ;)



I have searched through all the files but I can't find a real clue about the location of this setting....


Hope someone has some ideas about this issue...



Thanks in advance and greetings,


Mischa.

Projectmember of the BirthDays Module Project

Please Log in to join the conversation.

17 years 8 months ago #20258 by mischa
Replied by mischa on topic Re:UserFullName in E-mail From: Header
Hi there again,


After some time after posting this my knowledge grew a lot (in my understanding;)) and I took a fresh look about this issue.

After some try-and-error'ing I finally found the responsible code-part for it.

It's located in the file: ../administrator/components/com_comprofiler/comprofiler.class.php on line 3483 (CB 1.0.1).

I changed it from:

[code:1] $from->name = $from->name . " @ ". $mosConfig_sitename; // $ueConfig
[/code:1]

to:

[code:1] $from->name = $from->username . " @ ". $mosConfig_sitename; // $ueConfig
[/code:1]


After this change I am (and thereby my users are) recieving mails from user @ sitename <from-emailadress>. Just the way I wanted it...:)


OT: :woohoo: I'm really starting to like "code-hacking" rightnow...:P


Greetings,


Mischa.

Projectmember of the BirthDays Module Project

Please Log in to join the conversation.

17 years 8 months ago #20546 by beat
Replied by beat on topic Re:UserFullName in E-mail From: Header
This is actually a good catch for a bug of CB <= 1.0.1.

You are right, the names used in emails should depend on CB's name settings in CB configuration.

Could you please post bug to bug tracker of CB at forge.joomla.org ?

Thanks,
Beat

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

Please Log in to join the conversation.

17 years 8 months ago #20597 by mischa
Replied by mischa on topic Re:UserFullName in E-mail From: Header
Done! Thanks for the quick reply...;)

Projectmember of the BirthDays Module Project

Please Log in to join the conversation.

17 years 7 months ago #22382 by beat
Replied by beat on topic Re:UserFullName in E-mail From: Header
Fixed in next release. thanks again.

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

Please Log in to join the conversation.

17 years 7 months ago #22483 by mischa
Replied by mischa on topic Re:UserFullName in E-mail From: Header
beat wrote:

Fixed in next release. thanks again.



Glad I was able to help CB getting better....:P ;) B)


Greetz....

Projectmember of the BirthDays Module Project

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.366 seconds

Facebook Twitter LinkedIn