Redemption.SafeMailItem: Could not resolve the message recipients RRS feed

  • Question

  • Hi all,

    I have an application and it is allowing to send emails. For this we are using Redemption.dll (Version 5.5). But for one recipient it logs the error "Redemption.SafeMailItem: Could not resolve the message recipients" and the mail item resides in the outlook outbox and it is not sending. Emails can be send to other recipients. And again emails can be sent to the recipient who is getting troubled from another PC.

    So that the problem is related to particular PC and for particular recipient. I suspect it happens because of some setting in Outlook application in that PC. Do anyone know what can be gone wrong here? Is there any way to restrict any domain or email address in Outlook 2010?

    Please help. Thank you.

    • Moved by Pavel Celba Wednesday, January 22, 2014 10:56 PM Outlook automation question
    Wednesday, January 22, 2014 8:00 AM

All replies

  • What is your code that adds the recipients? Do you pass the recipient email address or name? In the former case, have you tried to use Recipients.AddEx? It will create a recipient in a resolved state.

    Dmitry Streblechenko (MVP)
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    Wednesday, January 22, 2014 11:11 PM
  • Hello,

    The Outlook Object Model provides the Resolve method of the Recipient class and the ResolveAll method of the Recipients class. Both methods attempt to resolve the Recipient objects against the Address Book. They return true if the object was resolved; otherwise, false. Also the Recipient class provides the Resolved property which returns a Boolean that indicates true if the recipient has been validated against the Address Book. Did you try to use them instead?

    Sub CheckRecipients()  
     Dim MyItem As Outlook.MailItem  
     Dim myRecipients As Outlook.Recipients  
     Dim myRecipient As Outlook.Recipient  
     Set myItem = Application.CreateItem(olMailItem)  
     Set myRecipients = myItem.Recipients  
     myRecipients.Add("Aaron Con")  
     myRecipients.Add("Nate Sun")  
     myRecipients.Add("Dan Wilson")  
     If Not myRecipients.ResolveAll Then  
        For Each myRecipient In myRecipients  
           If Not myRecipient.Resolved Then 
              MsgBox myRecipient.Name  
           End If 
     End If  
    End Sub

    Thursday, January 23, 2014 12:07 PM