Scheduling of Windows

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

Moderators: Developer, Contributor

Post Reply
tistou
Posts: 1
Joined: 09 Aug 2013, 09:26

Scheduling of Windows

Post by tistou »

Hi, thank you for your plugin.

I still have something that i would like to fix.

I have mantis and Emailreporting working fine, but what i'd like to do is schedule a script to fetch all mails.

When i go to http://localhost/plugins/EmailReporting ... t_mail.php it's working like a charm, but when i try "php link\to\file\bug_report_mail.php" i have this error : "Message : Failed to connect to the mail server".

If anyone is able to help me i'll be really thankfull.

I'm here for any questions you have.

PS : using Mantis 1.2.15 and EmailReporting 0.9.0 DEV
SL-Gundam
Posts: 722
Joined: 06 Jul 2011, 14:17

Re: Scheduling of Windows

Post by SL-Gundam »

please activate debug mode and post the full logs of bug_report_mail.php through the webserver and bug_report_mail.php through the commandline
vishalthakur1983
Posts: 2
Joined: 11 Nov 2013, 06:59

Re: Scheduling of Windows

Post by vishalthakur1983 »

Can somebody please help me with below error.

while running through command prompt (E:\wamp\bin\php\php5.3.8\php.exe E:\wamp\www\XXX\plugins\EmailReporting\scripts\bug_report_mail.php)
Location: Attempt login
[pear_error: message="" code=-1 mode=return level=notice prefix="" info=""]

and if i am running the same through browser (http://xxx.com/plugins/EmailReporting/s ... t_mail.php) then it's working perfectly.


I am using following :-

PHP 5.3.8
Email Reporting 0.9.0-DEV
SL-Gundam
Posts: 722
Joined: 06 Jul 2011, 14:17

Re: Scheduling of Windows

Post by SL-Gundam »

It's possible PHP.exe loaded another ini file then the one used by your webserver.

Please check the phpinfo information from within the command prompt and from within the webserver to find out which php.ini's are loaded

It's also possible that different pear library's are used. Which could also be found out by checking the phpinfo information

http://www.php.net/phpinfo

Something else you can try is enabling debug mode and run bug_report_mail again through the webserver and through the command line

Please post the results here
vishalthakur1983
Posts: 2
Joined: 11 Nov 2013, 06:59

Re: Scheduling of Windows

Post by vishalthakur1983 »

check with every possible solution but still not working :cry:
SL-Gundam
Posts: 722
Joined: 06 Jul 2011, 14:17

Re: Scheduling of Windows

Post by SL-Gundam »

Please provide the necessary output to support your answer.

That way we might see other things that are possibly causing your issues
Post Reply