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: 575
Joined: Jul 06, 2011 9:17 am

Re: Email Reporting Plugin Setup HOWTO

Post by SL-Gundam » Oct 04, 2014 11:59 am

mantisemailcheck.sh is not required but is something somebody else build to get it done. So he will have to answer that.

This is the manual for MantisBT: https://www.mantisbt.org/wiki/doku.php/ ... il_queuing
It pertains to scheduling /mantis/scripts/send_emails.php. EmailReporting uses to exact same method so follow that manual and schedule /mantis/plugins/EmailReporting/scripts/bug_report_mail.php

With linux scheduling is usually done using cronjobs. With Windows thats the Task scheduler

Cr0n0x1995
Posts: 3
Joined: Nov 21, 2014 5:27 pm

Re: Email Reporting Plugin Setup HOWTO

Post by Cr0n0x1995 » Nov 24, 2014 3:38 pm

anyone can help me, I have the following error and it is not, have done everything and nothing.
array (size=11)
'enabled' => boolean true
'description' => string 'Email_Test' (length=10)
'mailbox_type' => string 'POP3' (length=4)
'hostname' => string '192.168.1.5' (length=11)
'port' => int 110
'encryption' => string 'None' (length=4)
'erp_username' => string 'jose.malavera@copetran.com.co' (length=29)
'erp_password' => string 'Y3IwbjB4MTk5NQ==' (length=16)
'auth_method' => string 'USER' (length=4)
'project_id' => int 1
'global_category_id' => int 2



Mailbox: Email_Test
Location: Attempt login
[pear_error: message="-ERR Authentication failed." code=-1 mode=return level=notice prefix="" info=""]

SL-Gundam
Posts: 575
Joined: Jul 06, 2011 9:17 am

Re: Email Reporting Plugin Setup HOWTO

Post by SL-Gundam » Nov 28, 2014 4:58 pm

Just what the error says.

The username and password combination given is incorrect

Ancy
Posts: 46
Joined: Jun 30, 2017 6:10 am

Re: Email Reporting Plugin Setup HOWTO

Post by Ancy » Aug 03, 2017 9:17 am

Hi All,
I am trying to add EmailReporting plugin.but when i installed this plugin, login page went off.And i am not able to see anything in webpage.What would it be? If possible is there any step by step procedure for setting up email report plugin?

mantis2.5.1
php7.0.20
mysql 5.5.57

Ancy
Posts: 46
Joined: Jun 30, 2017 6:10 am

Re: Email Reporting Plugin Setup HOWTO

Post by Ancy » Aug 15, 2017 9:33 am

Dear there,

When i run bug php file, it has ended up in below error.can someone help me here?

APPLICATION ERROR #400: Database connection failed. Error received from database was #0: PHP Support for database is not enabled.


Much appreciated.

SL-Gundam
Posts: 575
Joined: Jul 06, 2011 9:17 am

Re: Email Reporting Plugin Setup HOWTO

Post by SL-Gundam » Aug 15, 2017 1:21 pm

It seems your command line php cannot find the php.ini which describes the php extensions that are enabled
I suggest you check the result of phpinfo() through a browser and through the command line to see whats different

Image

Ancy
Posts: 46
Joined: Jun 30, 2017 6:10 am

Re: Email Reporting Plugin Setup HOWTO

Post by Ancy » Aug 18, 2017 2:51 am

Our mailbox type is SMTP.is it the reason it fails for me?

Operation NOT successful

Description: check
Mailbox type: POP3
Hostname: xx.xxxxxx.net
TCP port (optional): 110
Connection encryption: None
Verify SSL certificate: 0
Username: ancy
Password: ******
Authentication method: USER

Message: Failed to connect to the mail server


[ Proceed ]

SL-Gundam
Posts: 575
Joined: Jul 06, 2011 9:17 am

Re: Email Reporting Plugin Setup HOWTO

Post by SL-Gundam » Aug 18, 2017 9:44 pm

your mailbox cannot be SMTP. SMTP is for sending emails. POP3 or IMAP (and some other more specific ones) are used for retrieving mail

Ancy
Posts: 46
Joined: Jun 30, 2017 6:10 am

Re: Email Reporting Plugin Setup HOWTO

Post by Ancy » Aug 24, 2017 5:14 am

Dear Soul,

How can i configure the email plugin for IMAP ?

I tried every probabilities and but failed.Could you please help me?

SL-Gundam
Posts: 575
Joined: Jul 06, 2011 9:17 am

Re: Email Reporting Plugin Setup HOWTO

Post by SL-Gundam » Aug 24, 2017 11:49 am

get the imap url for your account

Usually its easiest to just set it up in your favorite email client. If it works there you can copy those settings to EmailReporting

Ancy
Posts: 46
Joined: Jun 30, 2017 6:10 am

Re: Email Reporting Plugin Setup HOWTO

Post by Ancy » Aug 28, 2017 9:50 am

Dear Soul,

Now i got operation successful.But i was wondering why i am not able to retrieve any emails from the account? As in, there are no issues created after completing the test.What could it be? And how can i resolve it?

jd_rh
Posts: 3
Joined: Nov 08, 2017 3:48 pm

Re: Email Reporting Plugin Setup HOWTO

Post by jd_rh » Nov 08, 2017 3:59 pm

Here's the response I am getting from our email configuration test (we use Office 365 for email). I've check that the credentials are correct.

Any suggestions?
Operation NOT successful

Mailbox description: account@ourdomain.com
Mailbox type: IMAP
Mailbox hostname: ssl://outlook.office365.com
Mailbox port (optional): 993
Mailbox connection encryption: SSL
Mailbox username: account@ourdomain.com
Mailbox password: ******
Mailbox authentication method: USER
Mailbox basefolder (optional): INBOX

[pear_error: message="NO, LOGIN failed." code=0 mode=return level=notice prefix="" info=""]

SL-Gundam
Posts: 575
Joined: Jul 06, 2011 9:17 am

Re: Email Reporting Plugin Setup HOWTO

Post by SL-Gundam » Nov 09, 2017 1:51 pm

Make sure IMAP is enabled for the user account in question
Based on the error it would seem that the username and/or password is incorrect
Try SSL, TLS and STARTTLS (STARTTLS both with port 25 and 993)

Best way to test IMAP is to start a mail client and add the Office365 account as an IMAP mailbox to it. If that works you should also be able to get it to work using EmailReporting

jd_rh
Posts: 3
Joined: Nov 08, 2017 3:48 pm

Re: Email Reporting Plugin Setup HOWTO

Post by jd_rh » Nov 15, 2017 1:48 pm

SL-Gundam wrote:Make sure IMAP is enabled for the user account in question
Based on the error it would seem that the username and/or password is incorrect
Try SSL, TLS and STARTTLS (STARTTLS both with port 25 and 993)

Best way to test IMAP is to start a mail client and add the Office365 account as an IMAP mailbox to it. If that works you should also be able to get it to work using EmailReporting
Thanks for the reply. I've checked that the credentials are coorect. I do not see STARTTLS as an option in the dropdown. I guess I will need to investigate how to enable that in PHP.

SL-Gundam
Posts: 575
Joined: Jul 06, 2011 9:17 am

Re: Email Reporting Plugin Setup HOWTO

Post by SL-Gundam » Nov 15, 2017 3:52 pm

STARTTLS has nothing to do with PHP

It more likely that you're not running the most recent version of EmailReporting
Which version of MantisBT are you running?
Which version of EmailReporting are your running?

Post Reply