Hi,
I am using the following statement to get SMTP E-mail address from Outlook contacts.
It works fine, if i enter a valid SMTP address say for e.g (e-mail address removed). The problem is, if I enter an invalid email address say for e.g "aaaaaa", I am getting an empty string..
Does anyone know if there's a good way to get this invalid email address. Any help would be greatly appreciated.
I am using the following statement to get SMTP E-mail address from Outlook contacts.
Code:
_ContactItemPtr pContactItem;
_bstr_t=bstrTemp;
bstrTemp = pContactItem->Email1Address;
It works fine, if i enter a valid SMTP address say for e.g (e-mail address removed). The problem is, if I enter an invalid email address say for e.g "aaaaaa", I am getting an empty string..
Does anyone know if there's a good way to get this invalid email address. Any help would be greatly appreciated.