| Author |  | 
      
        | jvinis Newbie
 
  
 
 Joined: 20 May 2008
 Online Status: Offline
 Posts: 18
 | 
          How can i get the Uid assigned from the mailserver to the message i have just sent ?
           | Posted: 22 May 2008 at 1:47am | IP Logged |   |  
           | 
 |  
 Thanks
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Alex AfterLogic Support
 
  
  
 Joined: 19 November 2003
 Online Status: Offline
 Posts: 2207
 | 
          UID is a value assigned by the mail server to the message which has been put into a certain folder. This happens when the message gets delivered. For instance, if you send a message to two recipients (and the message was delivered to both of them), UID values will be different. UID is unique only on folder level (if you move message into another folder, UID will be different). And UID makes no sense for messages you send because they have no UID. UID values get assigned to them only when they get delivered to the end recipient's mailbox.
           | Posted: 22 May 2008 at 5:00am | IP Logged |   |  
           | 
 |  
 However, mail messages also have another value - Message-ID. Message-ID is assigned to the message when it gets sent and remains the same if the message gets moved between folders, etc. To find out Message-ID of the message just sent, simply read Smtp.Message.MessageID property value after sending.
 
 Regards,
 Alex
 | 
       
        | Back to Top |     | 
       
       
        |  |