Incorrect from_email value when using the mail queue.

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
Growiel
Posts: 4
Joined: 26 Oct 2016, 05:47

Incorrect from_email value when using the mail queue.

Post by Growiel »

Hi,

I'm using the latest stable MantisBT with the EmailReport plugin.

I have setup different from_email values for each projects. When modifying issues through the UI, the mails are sent from the correct email address.

However, when I use EmailReport, the email sent when I add a note to the issue, is sent using the global from_email, not the project specific one.

I've gone through the code and I don't think the issue is coming from EmailReport, as the only thing EmailReport is doing is calling bugnote_add() which then handles the email sending.

I've looked at how config_get() works and it seems that when sending the mail in email_shutdown, the project is not set anymore.

Any ideas ? Am I missing something or does this need to be fixed ?
atrol
Site Admin
Posts: 8378
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Incorrect from_email value when using the mail queue.

Post by atrol »

I don't have time to have a deeper look at it, but this seems to be a bug.
Please enter a report at http://www.mantisbt.org/bugs for it.

I assume we will see the same behaviour when using $g_email_send_using_cronjob = ON; and having emails from different projects in the email queue.
Please use Search before posting and read the Manual
Growiel
Posts: 4
Joined: 26 Oct 2016, 05:47

Re: Incorrect from_email value when using the mail queue.

Post by Growiel »

I don't seem to have access to the bugtracker, shall I report as anonymous then ?
atrol
Site Admin
Posts: 8378
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Incorrect from_email value when using the mail queue.

Post by atrol »

Anonymous report is not possible.
Currently signup for new accounts is disabled due to spam attacks.
Shall I create account Growiel for you?
Please use Search before posting and read the Manual
Growiel
Posts: 4
Joined: 26 Oct 2016, 05:47

Re: Incorrect from_email value when using the mail queue.

Post by Growiel »

Yes please.
atrol
Site Admin
Posts: 8378
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Incorrect from_email value when using the mail queue.

Post by atrol »

You should get email to activate your account.
Please use Search before posting and read the Manual
Growiel
Posts: 4
Joined: 26 Oct 2016, 05:47

Re: Incorrect from_email value when using the mail queue.

Post by Growiel »

I've open the issue at http://www.mantisbt.org/bugs/view.php?id=21826 I reformated the explanation and added some additional information.

Thanks in advance for looking into it.
Post Reply