I am working with the new version of Outlook on desktop and I need to implement a feature similar to smartphone functionality, where external email addresses (i.e., those not belonging to my organization) are automatically identified. If there has been an email exchange with these external addresses, they should then be added to my Outlook contacts.
Could anyone provide guidance or point me towards resources on how to:
Identify external email addresses in incoming and outgoing emails?
Check if there has been an email exchange with these addresses?
Automatically add these email addresses to my Outlook contacts if the above conditions are met?
Any help with code examples, links to relevant documentation, or similar implementations would be greatly appreciated.