Skip to content

Comment on Ask YC: How do I send incoming email to a PHP script?

Comments

There's probably something prebuilt already (dunno) but writing your own POP client isn't very difficult. Figure out how to set up a socket connection and issue some commands (look these up, but from memory all there is to POP is LOGIN, PASSWORD, LIST, RETRIEVE and DELETE). Now POP server processes were fairly CPU hungry (but short lived as well, so it wasn't too much of a problem) back in the day of 400MHz servers but nowadays you should be fine.

Ah yes, the PHP way. Instead of getting a library that does POP, just hack together a half-working implementation that may or may not randomly lose data. Good plan.

Oh come on. This is POP we're talking about, not a full fledged SOAP client. Writing your own POP client is easier and takes less time than scavenging the internet for someone else's, looking through it to see if it doesn't have bugs and testing it.

In fact, I'd argue that if you've never written any sort of network client code, writing a POP client is perfect to get you started. It's just that simple.

knee-jerk, much?

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.