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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.