Welcome Guest, Not a member yet? Register   Sign In
Email download library
#3

[eluser]ray73864[/eluser]
thanks, i spent all of yesterday going through it, for the 'seen' if statement to work, this piece of code has to be used on an imap server, since only with the imap protocol does the server and the client know about the status of the messages, couldn't get the seen code to work with pop3.

i had a problem with the live server and connecting to it though, which i didn't have on my development server.

If you get an rsh error when trying to close the imap connection, put '/norsh' into the connection string and it will go away, even if you don't get that error it can be handy, as it removes the 10-15sec lag when opening a connection.

eg:

Code:
$mbox = imap_open("{mail.example.com:143/imap/notls/norsh}", "user", "pass");

and if you aren't sure of the port that your server uses for imap, you can omit the port number completely by doing the following

Code:
$mbox = imap_open("{mail.example.com/imap/notls}", "user", "pass");

If you want to force it into a specific folder on your email account

Code:
$mbox = imap_open("{mail.example.com:143/imap/notls}INBOX", "user", "pass");
or
Code:
$mbox = imap_open("{mail.example.com:143/imap/notls}DRAFTS", "user", "pass");
or
Code:
$mbox = imap_open("{mail.example.com:143/imap/notls}SENT", "user", "pass");


Messages In This Thread
Email download library - by El Forum - 05-02-2009, 03:36 PM
Email download library - by El Forum - 05-02-2009, 03:45 PM
Email download library - by El Forum - 05-02-2009, 03:49 PM
Email download library - by El Forum - 05-04-2009, 01:45 PM
Email download library - by El Forum - 05-04-2009, 01:55 PM



Theme © iAndrew 2016 - Forum software by © MyBB