I installed all the modules and am trying to do the test to get started but I keep getting this message. Unable to connect to test_mailbox. Please check the connection settings for this mailbox. I have cloned the test and tried many different configurations. The closest I got was after setting up a gmail configuration I found in the handbook that gave me an ajax error.

I have installed Drupal 7.12 and installed only the recommended modules? I have all the permissions checked?

Comments

danepowell’s picture

Can you please enable the "Testing" module and run the tests for Mailhandler? If the tests fail, please save the test results page as HTML or take a screenshot and post here.

otcassetmgmt’s picture

StatusFileSize
new44.86 KB

I attached a screenshot of what I enabled. I did a search on Drupal for a "testing" module I did not find one posted. Thank you for your help if I am missing a module could you post the link(s).

danepowell’s picture

Testing is included in Drupal 7 core. Let me know if you have trouble.

otcassetmgmt’s picture

StatusFileSize
new7.92 KB

I found the testing module... I was not able to enable it I received this message.

The testing framework requires the PHP open_basedir restriction to be disabled. Check your webserver configuration or contact your web host. (Currently using PHP open_basedir restriction Enabled)

I am using 000.webhost.com I am not sure how to disable the open_basedir (I am not that experienced)

I figure I will install this on my local host later this evening or try another development environment called kodingen.com unless it's easy to disable this on 000.webhost.com set up that I am using?

I attached another pic after running a search in the PHP link that I found in the control panel.

Thank you for helping me out I am not that experienced (Drupal & PHP) like I mentioned, but I have built a module and have good knowledge of the feeds module as I have been teaching myself for the last 4 months about 12 hours a day.

otcassetmgmt’s picture

StatusFileSize
new13.91 KB

I now have testing enabled using a kodingen.com account set-up I just installed. Now I am getting the attached error

otcassetmgmt’s picture

StatusFileSize
new30.23 KB

I think the attached png image has my answer? but I am not sure...?...I have read some of your older posts to other users on this subject, but it's still difficult for me to grasp. Before I really explore this (info in the attachment) I wanted to run it by you to verify this is my answer and if so I will follow the instructions to complete my configuration unless you tell me otherwise.

otcassetmgmt’s picture

I do not know how to find the php.ini file w/ in Kodingen. So I have been working again with 000.webhost I have been searching and reading and configuring, but I still can not get a connection.

danepowell’s picture

Okay, well the testing module isn't strictly necessary, it's just something that would provide clues as to the root problem on your original server. Just to check, php_imap *is* available on your original server correct? And if you visit your Drupal status report ($base_url/admin/reports/status) does 'IMAP' report as 'Enabled'?

otcassetmgmt’s picture

StatusFileSize
new50.03 KB

First I checked the report to be sure the IMAP was enabled and it was. Then I imported the script and ran a test and it did not give any message at all the Ajax wheel spun for a wile and then ended. So I then clicked edit and looked at the settings and that was helpful because I was setting it up wrong. Next I saved the configuration again and received a error message attached.

I assume it is a 000.webhost configuration setting problem? I think a password somewhere is killing the connection? Anyway I am very grateful for your help and I think if I were using a paid host I may not have this issue. By the way my project that I am building is a tool for handicapping NFL Football and I hope to have it ready for next season. It's called The Blizzard of Odds it is not a betting site just one to help users during halftime pick bets using many variables. Half-time Harry will be the "wizard" who advises users on four choices per game/event (over,under,home or away) He (my system will one day) ranks those actions and users subscribe to his advise or not all records are kept and hopefully if I program it correctly he will be right more than wrong? Most of the other info I found as XML or RSS feeds.

Meanwhile I am using Basketball to practice my workflow and as it turns out it's not very easy to get free scores off the internet as XML or RSS feeds, But I found a free site http://www.sportsalert.com/register/ that emails the scores this is why I need to import the content into Drupal from an email. Earlier today I created a new Gmail account and found a site called https://freemyfeed.com/free that turns the email into an XML source on the internet and I successfully queried emails from that configuration, but it only works with Gmail and in the future may need to make it more secure. I suspect I will be using Mailhandler in the future for this when I pay for hosting. Again I am still learning and I am very appreciative of your help hopefully I can program this and learn (that actually is my main motivation) I have had many cool people help me here on Drupal... Have a great day and I hope to here from you in the future.

danepowell’s picture

It would help to have access to the IMAP error message(s), but unfortunately Mailhandler doesn't collect them. If you have access to server logs, you could see if there are any errors related to IMAP there. On dedicated servers this log would be in /var/log/mail.log but I'm not sure for a shared host.

Anyway, one action item resulting from this issue would probably be to collect error messages returned by imap_errors() in MailhandlerPhpImapRetrieve.class.php . Sorry I don't have time to work on this at the moment, but if you feel like doing some hacking you could look up the PHP documentation for imap_errors(), assign the output to a variable and then use dsm() or watchdog() to display the error.

otcassetmgmt’s picture

I will try this configuration tomorrow.

Lets assume I am successful connecting Mailhandler are there settings for importing the emails? I would like to filter them in? Because my alert service emails me many different kinds of emails and every one I want to receive...some are duplicate...some are more important than others... some are time sensitive...etc..all have distinct characteristics most important are the half and final scores. I am writing my own module called bliz_2_util to work some of this out. Is it possible to, "plug it into Mailhandler as custom filter?" I have other ideas here but I am trying to keep this short.

After Drupal captures the content my plan is to automate stuff by using Feeds, Rules and Flag for example. I feel I can further sort things out using modules and configuration rather than code. I have done all this updating using Feeds, but not as an automated process. Drupal is very good at managing data like this and I will try use Rules, Flag and Views to Handel a lot of the functionality. As I write my module I am thinking how to better provide so I can lessen the code.

My last resort is using the Data module and MySql querying.

On an unrelated issue I had to post this on a different problem http://drupal.org/node/1445346

danepowell’s picture

Status: Active » Postponed (maintainer needs more info)

It's been a few months, were you able to solve this? If not, can you try 7.x-2.x-dev? It includes a number of improvements, esp. to error reporting, which might help here.

otcassetmgmt’s picture

Thank you for responding I have learned a lot since then as I spend most of my time learning. I am now using my paid host and my Drupal rarely crashes and the 000.webhost does crash and I am sure that was the problem anyway I am able to use google mail and https://freemyfeed.com/free and I think that will work good for me now because it helps me sort the incoming info using feeds and rules. I am weak writing PHP code, but have been studying and I really appreciate your help thank you very much for checking on my situation.

danepowell’s picture

Status: Postponed (maintainer needs more info) » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

s33’s picture

Issue summary: View changes

This is the error I got:
"Unable to connect to mail. Please check the connection settings for this mailbox."
Thanks!