s0c0 Posted August 15, 2007 Share Posted August 15, 2007 If there is an easier way then please tell me. I've tried using the imap_open function to access the mailbox specifying port 110 instead of 143, but no dice. So I've been relegated to using fsockopen and sending telnet commands. I can use all the basic commands and retrieve individual messages, but the caveat is that I need to be able to open WAV files that are attached to these emails. I'm not having any luck with this. If I could just somehow store the wav file somewhere on the server in a tmp folder or something that would work great. For full disclosure, yes I am connecting to a remote pop3 server, if it was on the same host i imagine that would make this somewhat easier. Any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/65004-solved-not-fun-need-to-access-pop3-attachments-using-fsockopen-sending-telnet-commands/ Share on other sites More sharing options...
s0c0 Posted August 15, 2007 Author Share Posted August 15, 2007 so help me god, i've begun reading rfc 1939 Quote Link to comment https://forums.phpfreaks.com/topic/65004-solved-not-fun-need-to-access-pop3-attachments-using-fsockopen-sending-telnet-commands/#findComment-324416 Share on other sites More sharing options...
s0c0 Posted August 16, 2007 Author Share Posted August 16, 2007 bah, i was using the imap_open function incorrectly, I'm going to use that instead of fsockopen now. For pop3 connections you need to: $mbox = imap_open("{mail.server.com/pop3}INBOX", "username", "password"); Quote Link to comment https://forums.phpfreaks.com/topic/65004-solved-not-fun-need-to-access-pop3-attachments-using-fsockopen-sending-telnet-commands/#findComment-325480 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.