Email content not as expected

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
Herbiek
Posts: 11
Joined: 28 Nov 2018, 10:00

Email content not as expected

Post by Herbiek »

I have set the content of my conf_inc.php to the following:

Code: Select all

$g_phpMailer_method = 2;
	$g_smtp_host = 'relay.<domainname>.com';
	$g_from_email = 'noreply@<domainname>.com';
	$g_webmaster_email = 'mantis@<domainname>.com';
	$g_from_name		= 'Companyname Issue Tracker';
Everywhere you see <domainname> I have filled in the domain of our company
I have changed the company name to reflect the new name and that works for the most.

Sending email works great, however for example the subject still shows "<Oldcompany name Issue tracker> Account Updated"
The variable $g_from_name takes care of the From name in my email client (and does show the new company name) but where do I set that variable that is placed in front of the subject?

Have looked for it in the language files of English and Dutch as suggested in another post in the forum but did not found it mentioned there.
MantisBT version 2.18.0
Running on Ubuntu 18.04.1 LTS
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Email content not as expected

Post by atrol »

I am not sure if I understand right what you mean with "in front of the subject"

The subject of the emails typically looks like
[<Project Name> <Issue Id>] <Issue Summary>
So there is no company name, but a project name.
Please use Search before posting and read the Manual
Herbiek
Posts: 11
Joined: 28 Nov 2018, 10:00

Re: Email content not as expected

Post by Herbiek »

Ok, I'll try to explain what I see in my Outlook after I changed my own username and opted to notify the user (so in this case myself) about the changes.

The from name is: "new companyname Issue Tracker" <noreply@companydomain.com>
Subject: [Old company name Issue Tracker] Account updated

The first is correct and set by the variables in config_inc.php
The second (old name) one in the subject is still visible and should be set somewhere?

So in this case the email was not about a particular project but an account name change.
MantisBT version 2.18.0
Running on Ubuntu 18.04.1 LTS
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Email content not as expected

Post by atrol »

I assume you have set something like

Code: Select all

$g_window_title = 'Old company name';
Please use Search before posting and read the Manual
Herbiek
Posts: 11
Joined: 28 Nov 2018, 10:00

Re: Email content not as expected

Post by Herbiek »

No, that setting was not configured (at least not in the config_inc.php file), but now I have set it in config_inc.php and it is used when notifying a user (by email) about changes in their account.
No idea where Mantis did get our old company name from (as this it was certainly not default). Could it be set in another *php file that is read before the config_inc.php file?
MantisBT version 2.18.0
Running on Ubuntu 18.04.1 LTS
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Email content not as expected

Post by atrol »

Herbiek wrote: 03 Dec 2018, 15:38Could it be set in another *php file that is read before the config_inc.php file?
Maybe someone changed it in config_defaults_inc.php (this file should never be changed) instead of changing it in config_inc.php
Please use Search before posting and read the Manual
Herbiek
Posts: 11
Joined: 28 Nov 2018, 10:00

Re: Email content not as expected

Post by Herbiek »

You're correct it was setup /changed in the wrong file.
MantisBT version 2.18.0
Running on Ubuntu 18.04.1 LTS
Post Reply