Accessing a local mailbox using PHP on a Linux shared account (GoDaddy)

I guess this should be a common technique, However, I tried the following two options:

1) Using my existing POP3 PHP client to access my local email account. I get a "failed to connect" message. The same code works if I run it with my localhost connecting to the GoDaddy pop3 server

2) Parse the local mbox file - I can't figure out if I can access it, it looks like I can't.

Any good ideas on which approach should be the best here?

0


source to share


3 answers


Looks like I figured it out. Shared hosting (GoDaddy specifically) does not allow direct TCP connections anywhere, including your own POP3 server. It looks like I can't directly access the mbox file. So I guess it just won't work.

Thanks to all the guys!



Perhaps there are other inexpensive co-location plans that provide this opportunity ...

0


source


I would go with the POP3 option. It should work as soon as you get the port / host you want, etc.

Another option will duplicate a significant portion of the functionality already on the mail server, and you will most likely experience minor bugs causing emails to not display as expected, or worse, corruption in mbox.



If you go with 2 try to find a library to do the mbox bit!

+1


source


Zend Framework has a mail component that allows you to read from a variety of sources.

0


source







All Articles