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 »

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: 21 Nov 2014, 22:27

Re: Email Reporting Plugin Setup HOWTO

Post by Cr0n0x1995 »

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: 722
Joined: 06 Jul 2011, 14:17

Re: Email Reporting Plugin Setup HOWTO

Post by SL-Gundam »

Just what the error says.

The username and password combination given is incorrect
Ancy
Posts: 46
Joined: 30 Jun 2017, 11:10

Re: Email Reporting Plugin Setup HOWTO

Post by Ancy »

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: 30 Jun 2017, 11:10

Re: Email Reporting Plugin Setup HOWTO

Post by Ancy »

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: 722
Joined: 06 Jul 2011, 14:17

Re: Email Reporting Plugin Setup HOWTO

Post by SL-Gundam »

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: 30 Jun 2017, 11:10

Re: Email Reporting Plugin Setup HOWTO

Post by Ancy »

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: 722
Joined: 06 Jul 2011, 14:17

Re: Email Reporting Plugin Setup HOWTO

Post by SL-Gundam »

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: 30 Jun 2017, 11:10

Re: Email Reporting Plugin Setup HOWTO

Post by Ancy »

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: 722
Joined: 06 Jul 2011, 14:17

Re: Email Reporting Plugin Setup HOWTO

Post by SL-Gundam »

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: 30 Jun 2017, 11:10

Re: Email Reporting Plugin Setup HOWTO

Post by Ancy »

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: 08 Nov 2017, 20:48

Re: Email Reporting Plugin Setup HOWTO

Post by jd_rh »

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: 722
Joined: 06 Jul 2011, 14:17

Re: Email Reporting Plugin Setup HOWTO

Post by SL-Gundam »

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: 08 Nov 2017, 20:48

Re: Email Reporting Plugin Setup HOWTO

Post by jd_rh »

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: 722
Joined: 06 Jul 2011, 14:17

Re: Email Reporting Plugin Setup HOWTO

Post by SL-Gundam »

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