Email content not as expected

Get help from other users here.

Moderators: Developer, Contributor

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

Email content not as expected

Post by Herbiek » Nov 29, 2018 8:33 am

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: 7658
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: Email content not as expected

Post by atrol » Nov 29, 2018 11:10 am

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: Nov 28, 2018 5:00 am

Re: Email content not as expected

Post by Herbiek » Nov 29, 2018 11:35 am

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: 7658
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: Email content not as expected

Post by atrol » Dec 02, 2018 4:11 am

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: Nov 28, 2018 5:00 am

Re: Email content not as expected

Post by Herbiek » Dec 03, 2018 10:38 am

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: 7658
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: Email content not as expected

Post by atrol » Dec 03, 2018 2:39 pm

Herbiek wrote:
Dec 03, 2018 10:38 am
Could 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: Nov 28, 2018 5:00 am

Re: Email content not as expected

Post by Herbiek » Dec 04, 2018 3:24 pm

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