php mail system

Posted on 2014-08-14
Last Modified: 2014-08-28

I have read that it is possible to create a mailbox system using php. However, php does not handle some of the multi-threading as well as other items due to its stateless nature. Regardless, i am curious if it something to investigate further and come up with my own solution, if there are good open source alternatives or good tutorials.

Essentially, I would like to have an admin login to a website and direct them to a page. The page will fetch emails from a directory on the web server and display them for the admin. The admin could then respond, delete, save, etc the emails as per usual. I know sending emails is the least of the problems here the larger part would be handling of the incoming messages.

im not very concerned with having the ability to sync using pop, imap or smtp (although if it is not very difficult i guess the more flexibility the better). I assume that most of the users interaction with the emails will be handled with a combination of javascript, ajax, and php

thanks in advance
Question by:M. Jayme Nagy
    LVL 58

    Accepted Solution

    There is a rake of email clients already, no point in reinventing the wheel
    LVL 28

    Assisted Solution

    I would use Squirrelmail its open source, free and supported does all you ask
    LVL 107

    Assisted Solution

    by:Ray Paseur
    Not sure why you want to do this, but if there are reasons to avoid the existing mail clients, please tell us and we may be able to help more.  Otherwise, if the existing mail clients can do what you want it would be a lot easier to just choose and use.
    LVL 6

    Author Comment

    by:M. Jayme Nagy
    Honestly, its more of a learning exercise.

    Plus i bought a nice looking template that i would like to give a whirl

    Does this eliminate some options?


    LVL 58

    Assisted Solution

    Just download one of the existing ones and go through it.
    It will be a lot easier than trying to write it yourself.
    You can style them however you like.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL ( several years ago, it seemed like now was a good time to updat…
    Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
    The viewer will learn how to count occurrences of each item in an array.
    The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now