I would like to learn how to build a web-based email client in PHP (similar to yahoo and gmail).
Does anyone know how I can get started with this?
I would like my system to be able to send and receive email.
I would like to learn how to build a web-based email client in PHP (similar to yahoo and gmail).
Does anyone know how I can get started with this?
I would like my system to be able to send and receive email.
Can you be more specific?
That would be a large job with many components.
If you pass point 5, you'll know how to build one.
Thats a HUGE question!
Your main options are
1. Directly integrating your code with an existing mail server
2. Using IMAP and SMTP to talk to an existing mail server
Number 2 is the most straightforward because you can change mail servers if you ever need to.
and yes there's a lot more to consider as you go
Set up an email account that can be accessed via POP (example: gmail). Then use the PHP IMAP functions to retrieve email via the POP protocol (POP is probably easier than IMAP) (http://us2.php.net/imap). For sending mail, use the PHP Mail functions (http://us2.php.net/mail).
If you're not using an external mail service (like Gmail) you will need to configure your own server to store and send email. Here is a tutorial for using Postfix (for sending mail) and Dovecot (for accessing mail via IMAP). This tutorial also explains setting up a webmail system in SquirrelMail. You could do this, or, if you really want to develop your own system you could write a PHP application to access your mail.
Good Luck!
Don't. There are already way too many: http://www.google.ro/search?q=opensource+email+client+php&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a
Hi,
Most obvious answer would be "don't" : there are already lots of webmail software, some of which are PHP-based (if you depend on using PHP, because you already have a server based on a LAMP stack, for instance).
To quote only a few names, all PHP-based, you could have a look at these ones :
I've used the three firsts of the list for quite some time ; roundcube was definitly the most "user-friendly", I'd say...
(Googling a bit, you might find many more -- but I think I spoke about the ones that are the most used)
Now, if you have to set up a Webmail, say, for you company : definitly use some already existing software :
As a sidenote : if your company wants you to build a clone of gmail, you won't (same thing : how many people worked on gmail ? How many programmers does your company have ? How much can your company spend on this ? )...
And for just a couple dollars each year, your company could have a "professionnal" Google account for each one of it's employes, btw...
After all this, if you still want to / have to write a custom hand-made webmail using a LA*(M)*P stack, you will need to know at least the following :
Considering all this is not a problem (If you are not quite good at all this already, and/or don't have much experience, it could take at least a couple of years to acquire that... Considering programming and web-developping is your full-time activity), you can start tkinking about accessing a mail server using, for instance, IMAP.
There are several possibilities here.
I would have a look, at least, before choosing, at these two :
Zend_Mail
; maybe it can be used outside of the Zend Framework, btwOnce your application is quite done, you will (hopefully !) start getting users, which means at least three things :
Here, again, are you ready to deal with that ?
Well, I think I said enough ; now, it's your time to think : do you really want/need to develop such an application from scratch ?
If you have a bit of free time, maybe you could participate in an already existing, open-source, project ? That could be profitable to every one ;-)
Finally, one last thing : if you want to work on such a project just for fun, to know what it's like, and to learn more about web-development, then DO !
(It's, in my opinion, probably the only reason that would justify working on this, btw)
Anyway, good luck ! And/or have fun !
I would add AfterLogic WebMail Lite, a free community edition of full-featured WebMail Pro server application intended for users who need a clean and simple web mail application, which is fast and easy to use.