How to implement PHP webmail group.

Source: Internet
Author: User
How to implement PHP webmail group. You need to implement an Insite email function, but the group sending does not know how to do it. please help or who has examples for reference?


Reply to discussion (solution)

Two methods
NO1. send a message to 'true' all users.
NO2. get the to-do task of the program when the user logs on.

Two methods
NO1. send a message to 'true' all users.
NO2. get the to-do task of the program when the user logs on.


The first method is not feasible. if there are too many people, the database will not be able to stand it. Can I elaborate on the second method?

The simplest way is to view the notification sent by the administrator in the everyone list.

Create a message table. After each user logs on to the message Table, find out whether or not he has provided it to himself. The flag is changed after reading.
Message publishing concurrency is not too large, and a large amount of data can be sharded by time, only concerned with recent
You can also use redis

If you are too lazy, create a new "notification" database. you can load it after logging on to the database.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.