I am doing an email application which will allow multiple attachments and emails will be send on schaduled date. I have some desgining issues here. Please guide me with your expereienced knowledge.
Email will be stored in db table but attachments will be stored in a folder on server. User will upload files first later his email will be stored in db. I have messages and attachments tables. But there are some cases which system should be able to handle.
- How I should store attachments of emails of different users (in one folder or in multiple folders) ?
- How attachment naming should be manged, more then one attachments (by one or different users) can have same name ?
- User can upload files but later can leave composing message, how system will handle such atachments ?
- What will be best time to save email message in db table on user button (save or draf) press or compose page request ? If you suggest on page request then how to handle messages that were not successfully finished ?
Plase guide if I am missing any thing else.
I will be more thankful for your guidance, time and sincere advice.