Jump to content

imap: how to save a copy of sent emails to sent elements


king.oslo

Recommended Posts

king:

 

You are writing basically an email server, right?  You would have to store the pieces of the email somewhere in the database, and then display those to that user and associate them with their account.  i.e.

1.  User sends email:

    a.  subject

    b.  body

    c.  to

    d.  from

    ...etc.

2.  Store copy of email in database

3.  Send email to 'to' address

4.  If user clicks on 'sent' folder

    a.  hit the database and look for the emails user sent

    b.  display list of emails.  if user deletes permenantly, remove from database.

 

Obviously, there's probably a lot more that needs to happen for a full email server, but you get the idea - you would need to store the pieces of the email in the database and piece them back together later.  The real fun starts when/if you need to receive emails from another email server or make use of the different kinds of emails that might be interacted with..

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.