Jump to content

[SOLVED] not fun, need to access pop3 attachments using fsockopen sending telnet commands


s0c0

Recommended Posts

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?

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");

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.