Jump to content

Mailing another user system


TeddyKiller

Recommended Posts

I'm creating a mail system for my users on my website. For now it'll be basic.

Compose message, send it etc. and then it displays in the users inbox. (In which they sent it to)

The mailmessage table will have the following collums:

id, from_id, to_id, message, status

I might be missing a few, but basically this includes the message id, the message, who its from and who its to, and the status.. so read, or unread.

 

If I added in a sent section, (so users can see the messages they have sent) as users can delete the messages in their inbox, it'll delete them from the sent messages too.

I'm sorry if I make no sense. I could set it so that .. it has another 2 collums.

to_status, and from_status. So if there both set as delete, then the row gets deleted. (Or kept for admins only to check for abuse if one was reported for it etc) Though if the user who sent it, will see the messages.. but it'll be seen only if the from_status is not deleted..

If that makes sense?

 

Please tell me if theres abetter way, for the whole system. :)

Thanks

Link to comment
https://forums.phpfreaks.com/topic/197355-mailing-another-user-system/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.