I have a scenario that looks like this:
- User A is a registered user.
- User B is just a visitor (not registered).
- User B needs to send a message to User A (without having to register).
- User A needs to reply to User B.
- Repeat steps 3 & 4 ad infinitum.
So basically I've implemented this simple table structure:
id
id_message (= 0 on first contact or = id on replies)
from
to
message
date_created
The idea is that each message where id_message equals to 0 would have it's on public URL so that both parties could access it and see the threaded conversation. For User A I just need to store his user id. for User B, since he is not registered I would need to store his name, phone/mobile number and email address (serialized of course). Each time a new message is posted the other party receives a warning email regarding the update.
However I see some problems with this approach:
- Serialization of User B details doesn't seem "right".
- User B needs to enter the same details each time a reply is needed.
- I can't think of anything else right now, but I'm sure there are other problems that come up with this approach.
Basically, what I'm looking for is the best solution for a complete stranger to engage in a conversation with a registered user while keeping the ease of use for both parties. What do you guys think, should I take this approach? Are there any other clever alternatives to solve similar problems?