Jump to content
North Side Baseball

Recommended Posts

Guest
Guests
Posted
Since the stories I see haven't updated since February of 2005, I think that section could be removed.

Funny. I'm working on getting that code fixed right now. I have a news service sending cubs-related articles to an email address and I'm right now working on getting those emails parsed and presented on the front page. I'm hoping to have it done today.

Guest
Guests
Posted

!@#$@#

 

I'm having trouble getting the imap_open function working in php. :evil:

Posted
!@#$@#

 

I'm having trouble getting the imap_open function working in php. :evil:

 

Tim, do you know if the mail server you are trying to connect to uses Transport Layer Security? If so, you may need to use this workaround:

 

imap_open will not open a stream if your server operates with Transport Layer Security (i.e. TLS) imap_open connects with SSL if its there. So try opening mailbox as

 

$mailbox="{mail.domain.com:143/imap/notls}";

or

$mailbox="{mail.domain.com:110/pop3/notls}"; This works...

 

Some mail server requires you to provide username@domain.com so you can always use. user@doamin.com

 

$conn=imap_open($mailbox, $username, $password);

 

Some server may ask for username as "user=user@domain.com"

 

:)

 

I'm sure you've probably already looked at this, but here is a link to more info.

Guest
Guests
Posted
!@#$@#

 

I'm having trouble getting the imap_open function working in php. :evil:

 

Tim, do you know if the mail server you are trying to connect to uses Transport Layer Security? If so, you may need to use this workaround:

 

imap_open will not open a stream if your server operates with Transport Layer Security (i.e. TLS) imap_open connects with SSL if its there. So try opening mailbox as

 

$mailbox="{mail.domain.com:143/imap/notls}";

or

$mailbox="{mail.domain.com:110/pop3/notls}"; This works...

 

Some mail server requires you to provide username@domain.com so you can always use. user@doamin.com

 

$conn=imap_open($mailbox, $username, $password);

 

Some server may ask for username as "user=user@domain.com"

 

:)

 

I'm sure you've probably already looked at this, but here is a link to more info.

SWEET! The /notls worked. Now for the parsing. :D

Guest
Guests
Posted
Cool. The parsing is done. Now I just need to put it into the database, delete the old emails and read from the database. But that'll come after the game. :D
Guest
Guests
Posted

Okay. First pass at this is done. I still have to clean up the text a bit and put the readnews.php script on a cron task instead of the manual update link at the bottom of the list, but it's working pretty well.

 

Everyone feel free to click the link to look for new news at any time!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
The North Side Baseball Caretaker Fund
The North Side Baseball Caretaker Fund

You all care about this site. The next step is caring for it. We’re asking you to caretake this site so it can remain the premier Cubs community on the internet. Included with caretaking is ad-free browsing of North Side Baseball.

×
×
  • Create New...