Email Reporting Plugin Setup HOWTO

This plugin allows you to report an issue in MantisBT by sending an email to a particular mail account

Moderators: Developer, Contributor

SL-Gundam
Posts: 722
Joined: 06 Jul 2011, 14:17

Re: Email Reporting Plugin Setup HOWTO

Post by SL-Gundam »

If you want issues created with category A and other issues created with category B, you need to set up two mailboxes in EmailReporting. These mailboxes cannot be connected to one and the same email address... so you need to have two email addresses (one email address per category)
ZiZou1991
Posts: 23
Joined: 21 Jul 2014, 12:12

Re: Email Reporting Plugin Setup HOWTO

Post by ZiZou1991 »

Yes, I understand you now :D
but how to specify the project and the category in the mail for a new issue created (the mail format)
SL-Gundam
Posts: 722
Joined: 06 Jul 2011, 14:17

Re: Email Reporting Plugin Setup HOWTO

Post by SL-Gundam »

Project and category can only be managed by the mailbox settings in EmailReporting. mail formatting has no influence on the created issue
ZiZou1991
Posts: 23
Joined: 21 Jul 2014, 12:12

Re: Email Reporting Plugin Setup HOWTO

Post by ZiZou1991 »

Please excuse me
i create an issue via mail
how to know the project related to
the category is known with the mail address
by default issues will be unassigned but mantisbt has auto assign functionality builtin in certain categories and such.
Can you give me that fonctinnality
thanks :)
SL-Gundam
Posts: 722
Joined: 06 Jul 2011, 14:17

Re: Email Reporting Plugin Setup HOWTO

Post by SL-Gundam »

for the auto assign just edit a category (either global or connected to a project) and you will see the option to assign that category to someone

This is base functionality provided by MantisBT.

project and category can be selected as part of the mailbox settings in EmailReporting
ZiZou1991
Posts: 23
Joined: 21 Jul 2014, 12:12

Re: Email Reporting Plugin Setup HOWTO

Post by ZiZou1991 »

Hello,

The reporter user should be the email sender is not it ?
https://www.dropbox.com/s/kkc3id19npg30 ... .25.12.png
I solved this problem, but i still have one more :?
I want to fill the field assigned to correctly
if this is not implemented in mantis i hope that you help me
I have another question
when i create x project, must i create also x address mail ? 8O
if yes how to repair that because it is not practical in my case

Thank you in advance :)
ZiZou1991
Posts: 23
Joined: 21 Jul 2014, 12:12

Re: Email Reporting Plugin Setup HOWTO

Post by ZiZou1991 »

awesome
I solved the second issue :D
I wait for your answer to my question Sir :)
thanks :)
SL-Gundam
Posts: 722
Joined: 06 Jul 2011, 14:17

Re: Email Reporting Plugin Setup HOWTO

Post by SL-Gundam »

In my case I've created one project where issues are created and after that i move them manually to other projects based on my own opinion where they belong
ZiZou1991
Posts: 23
Joined: 21 Jul 2014, 12:12

Re: Email Reporting Plugin Setup HOWTO

Post by ZiZou1991 »

ok good job
Now i search for detailed instructions on setting up Gmail SMTP ( and outlook also -_- )
always not working despite settings are exact why?
Last edited by ZiZou1991 on 08 Aug 2014, 10:02, edited 1 time in total.
ZiZou1991
Posts: 23
Joined: 21 Jul 2014, 12:12

Re: Email Reporting Plugin Setup HOWTO

Post by ZiZou1991 »

config_inc.php

/***************************
* MantisBT Email Settings *
***************************/


//$g_administrator_email = '***@outlook.com';
$g_administrator_email = '***@gmail.com';

//$g_webmaster_email = '***@outlook.com';
$g_webmaster_email = '***@gmail.com';


//$g_from_email = '***@outlook.com';
$g_from_email = '***@gmail.com';


$g_from_name = 'Mantis Bug Tracker';


//$g_return_path_email = '***@outlook.com';
$g_return_path_email = '***@gmail.com';

$g_enable_email_notification = ON;

$g_email_receive_own = OFF;

$g_validate_email = ON;

$g_check_mx_record = OFF;

$g_allow_blank_email = OFF;

$g_limit_email_domain = OFF;

$g_show_user_email_threshold = NOBODY;

$g_show_user_realname_threshold = NOBODY;

$g_mail_priority = 3;

$g_phpMailer_method = PHPMAILER_METHOD_SMTP;

//$g_smtp_host = 'smtp.live.com';
$g_smtp_host = 'smtp.gmail.com';

//$g_smtp_password = '***';
$g_smtp_password = '***';


$g_smtp_connection_mode = 'ssl';


$g_smtp_port = 465;

$g_email_send_using_cronjob = OFF;

$g_email_set_category = ON;

$g_email_separator1 = str_pad('', 70, '=');

$g_email_separator2 = str_pad('', 70, '-');

$g_email_padding_length = 28;

$g_log_level = LOG_EMAIL;

$g_log_destination = 'file:e:/tmp.log';

Firewall and Antivirus were deactivated
SL-Gundam
Posts: 722
Joined: 06 Jul 2011, 14:17

Re: Email Reporting Plugin Setup HOWTO

Post by SL-Gundam »

The settings you mention are for sending emails. Thats something you should ask in the general forums for MantisBT

But most likely this is caused because gmail has two step verification where you normal password will not work. The application passwords are meaned for IMAP and POP3. You might need to use those
ZiZou1991
Posts: 23
Joined: 21 Jul 2014, 12:12

Re: Email Reporting Plugin Setup HOWTO

Post by ZiZou1991 »

Thanks Sir for your help and disponibility
I'll search
Thanks again :)
sonam
Posts: 14
Joined: 26 Sep 2014, 12:44

Re: Email Reporting Plugin Setup HOWTO

Post by sonam »

Hi

When i put

Block this script from running via a webserver (recommended = "Yes") to No

And run the "bug_report_mail.php" file in browser then i get this error:

-----------------
Mailbox: Gmail test
Message: Mail debug directory does not exist or is not writable.


Mailbox: Gmail test
Message: Mail debug directory does not exist or is not writable.


Mailbox: Gmail test
Message: Reporter: 2 - noreply@example.com --> Issue ID: #33


Done checking all mailboxes
--------------

So kindly please let me know what is wrong and what to do???
SL-Gundam
Posts: 722
Joined: 06 Jul 2011, 14:17

Re: Email Reporting Plugin Setup HOWTO

Post by SL-Gundam »

Check the configuration settings for EmailReporting.

One part of the settings is about a debug directory which shows its current status behind it
sonam
Posts: 14
Joined: 26 Sep 2014, 12:44

Re: Email Reporting Plugin Setup HOWTO

Post by sonam »

Hi

Can you please tell me where to create this mantisemailcheck.sh file
Post Reply