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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.