I need to get the recipient email address out of an item on Outlook 2010.
My code is as follow:
sSQL = "SELECT id from dbo.database where email_address LIKE '" & Item.RecipientEmailAddress & "'
item.recipientEmailAddress is not valid, but I need something like that.
I know that you have a code call Item.SenderEmailAddress but in this case I need the recipient's email address.
I've seen some other threads on that subject but I did not manage to make any of them work.