L
Long Nguyen
(Outlook 2000)
Good day,
I have custom form which includes the vbscript code below that checks if
address resolution for NewMail mail item was successful:
NewMail.Recipients.ResolveAll
For Each objRecipient in NewMail.Recipients
If objRecipient.Resolved = False Then
msgbox "Invalid address: " & objRecipient.Name
End If
Next
(This code is copied from Hour 16 in Sue Mosher's Outlook 2000 Programming
book)
However I found that if one of the addresses in Newmail.Recipients invalid,
then the For loop would display out ALL recipients (i.e. the
objectRecipient.Resolved would return False for all recipients). If all
addresses are valid then no recipient names are displayed.
Could you explain to me why.
Thanks
Long.
Good day,
I have custom form which includes the vbscript code below that checks if
address resolution for NewMail mail item was successful:
NewMail.Recipients.ResolveAll
For Each objRecipient in NewMail.Recipients
If objRecipient.Resolved = False Then
msgbox "Invalid address: " & objRecipient.Name
End If
Next
(This code is copied from Hour 16 in Sue Mosher's Outlook 2000 Programming
book)
However I found that if one of the addresses in Newmail.Recipients invalid,
then the For loop would display out ALL recipients (i.e. the
objectRecipient.Resolved would return False for all recipients). If all
addresses are valid then no recipient names are displayed.
Could you explain to me why.
Thanks
Long.