Jump to content

Trying to connect to a POP3 ssl server with system()


fortinbras

Recommended Posts

My code is:

<?php
echo system("openssl s_client -crlf -connect pop3.live.com:995");
?>

 

This connects fine. However, I don't know how to log in now. If I'm connecting from the terminal I then type "user annie" followed by "pass idontlikesand". I don't know how to pipe this in using php.

 

Any ideas?

Yup you're right.

 

http://pear.php.net/package/Net_POP3/

 

That package actually has pretty much everything I need. Just want to find a way to search through the email automatically and filter out only emails from a certain domain.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.