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

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

1) Using my existing POP3 PHP client to access my local mail account. I am getting a "could not connect". Same code works if I run it with my localhost connecting to GoDaddy's pop3 server

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

Any good ideas of which approach should be best here?

Answers


I'd go with the POP3 option. It should work once you get the right port/host etc.

The other option will result in you duplicating a large part of the functionality already in the mail server, and its quite likely you'll have minor bugs in it resulting in emails not displaying properly, or worse, corruption in the mbox.

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


Need Your Help

Android Java Array indexoutofbound

java android arrays arraylist

how do i make a button go to the last place in an array when pressed without getting an indexoutofbound error?

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.