Page 1 of 1

Email content not as expected

Posted: Nov 29, 2018 8:33 am
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.

Re: Email content not as expected

Posted: Nov 29, 2018 11:10 am
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.

Re: Email content not as expected

Posted: Nov 29, 2018 11:35 am
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.

Re: Email content not as expected

Posted: Dec 02, 2018 4:11 am
by atrol
I assume you have set something like

Code: Select all

$g_window_title = 'Old company name';

Re: Email content not as expected

Posted: Dec 03, 2018 10:38 am
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?

Re: Email content not as expected

Posted: Dec 03, 2018 2:39 pm
by atrol
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

Re: Email content not as expected

Posted: Dec 04, 2018 3:24 pm
by Herbiek
You're correct it was setup /changed in the wrong file.