ridiculous Posted August 31, 2008 Share Posted August 31, 2008 I'm wondering if anyone knows a way to hack the PHP cURL lib so that you can use it with POP3. Link to comment https://forums.phpfreaks.com/topic/122147-can-you-use-curl-for-pop3/ Share on other sites More sharing options...
kenrbnsn Posted August 31, 2008 Share Posted August 31, 2008 Why? PHP has a built-in way of getting mail using POP -- the imap functions -- don't let the name fool you, they can be used for POP. Ken Link to comment https://forums.phpfreaks.com/topic/122147-can-you-use-curl-for-pop3/#findComment-630618 Share on other sites More sharing options...
cooldude832 Posted August 31, 2008 Share Posted August 31, 2008 Why? PHP has a built-in way of getting mail using POP -- the imap functions -- don't let the name fool you, they can be used for POP. Ken Imap is probably one of the most painful libraries to work with. Explain what you need to do first because we might be able to save you headaches cause IMAP = headaches Link to comment https://forums.phpfreaks.com/topic/122147-can-you-use-curl-for-pop3/#findComment-630625 Share on other sites More sharing options...
ridiculous Posted August 31, 2008 Author Share Posted August 31, 2008 Actually, I have been able to write email clients in both IMAP and Sockets - but I don't have access to either extension from the server that I'm hosting the script on. I just need to know if you can do a curl_init that doesn't automatically go to http or ftp. in other words, I'm wondering if you can do the following in cURL: [1] fsockopen($server, 110); OR [2] imap_open ("{$server:110/pop3}INBOX", "user_id", "password"); Link to comment https://forums.phpfreaks.com/topic/122147-can-you-use-curl-for-pop3/#findComment-630634 Share on other sites More sharing options...
cooldude832 Posted August 31, 2008 Share Posted August 31, 2008 You can use cURL to get into your server that can use IMAP to retrive the data Link to comment https://forums.phpfreaks.com/topic/122147-can-you-use-curl-for-pop3/#findComment-630639 Share on other sites More sharing options...
DarkWater Posted August 31, 2008 Share Posted August 31, 2008 Or, like I've said before, don't use GoDaddy. You can't hack the cURL library into doing this (well, I mean, you COULD, but I doubt you'd be very successful, as it's pretty complicated stuff). =/ Sheesh. cooldude has a pretty good idea, but it won't work unless the server that you can use imap or sockets can be accessed. Link to comment https://forums.phpfreaks.com/topic/122147-can-you-use-curl-for-pop3/#findComment-630640 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.