| Author | 
         | 
         
      
        
         
         Guests Guest Group 
          
 
  Joined: 10 November 2003
 Online Status: Online Posts: 262
          | 
        
         
          
           | Posted: 28 June 2004 at 11:09am | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
Hello,
 Can you please tell me if i can do the foolowing mailbee
 
 1)know the importance(priority) of a incomming email.
 2)Is there a way to method or event to let me know when a email is delivered and read.
 
         | 
       
       
        | Back to Top | 
         
          
         | 
       
       
       
        |   | 
      
        
         
         Alex AfterLogic Support 
          
  
  Joined: 19 November 2003
 Online Status: Offline Posts: 2207
          | 
        
         
          
           | Posted: 28 June 2004 at 11:40am | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
To get message's priority/importance/etc, you can use GetHeader method of the Message object:
 
 priority = Message.GetHeader("X-Priority")
 ms_priority = Message.GetHeader("X-MSMail-Priority")
 importance = Message.GetHeader("Importance")
 
 To trigger an event of the message being read, add "Disposition-Notification-To" header to the message.
 
 SMTP.Message.ToAddr = "to@domain.com"
 SMTP.Message.FromAddr = "from@domain.com"
 SMTP.Message.AddHeader "Disposition-Notification-To", "from@domain.com"
 ...
 SMTP.Send
 
 The recipient will be prompted to send Reading confirmation when he/she opens the message.
 
 However, the recipient's mail software must support this sort of functionality. Most popular mail clients do but there is no 100% guarantee.
 
         | 
       
       
        | Back to Top | 
         
          
         | 
       
       
       
        |   |