nolageek Posted December 20, 2003 Share Posted December 20, 2003 Trying to get a script workiing that will post stories via e-mail to my drupal site (nolagay.com) The way the script is configured, I get the following error when I check my pop3 account: >warning: imap_open(): Couldn't open stream {mail.nolagay.com/pop3 110}INBOX in /home/nolagay/public_html/drupal/modules/mailhandler.module on line 14. I know I have a space before /pop3 and 110 when there should be a colon - but if I put the colon in, it just locks up and sits there indefinately. This was mainly to get a message so I'd know it was doing SOMETHING. This is the code in the source: >function mailhandler_retrieve($mailbox) { if($mailbox["domain"]){ if($mailbox["imap"] == 1) { $box = "{". $mailbox["domain"] .":". $mailbox["port"] ."}". $mailbox["folder"]; } else { $box = "{". $mailbox["domain"] ."/pop3 ". $mailbox["port"] ."}". $mailbox["folder"];$mailbox["folder"]; } $result = imap_open($box, $mailbox["name"], $mailbox["pass"]); $err = "domain"; } else { $box = $mailbox["folder"]; $result = imap_open($box, "", ""); } I tried adding /notls after /pop3, but that didnt work either. woooot Any ideas? I'm stumped. Vincent Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.