Can't get the email address of the recipient

Dec 6, 2010 at 1:08 AM

I use function "get_email_address( ) " to get the email address of the recipient ,but failed ,how?

Dec 9, 2010 at 5:14 AM

Perhaps that recipient doesn't have an email address?

Feb 6, 2011 at 7:05 PM

I have the same problem.

Trying to index a pst file, a lot of key_not_found<prop_id> exceptions occur and it slows down my code very much. Can you suggest enhancements for this code snippet?

	tmp2 = gcnew String(rc.get_email_address().c_str()); // the email of the recipient
catch (key_not_found<prop_id>& ex)
	// pass
I test if tmp2 is null later in the code, but it seems to slow down on the catch. There is nothing there, but it prints an error to the output anyway.

Feb 6, 2011 at 9:18 PM

I think you're doing the right thing - some recipients just may not have the email address property, depending on where they came from. Try manually inspecting the properties on a recipient without an email address (get the property bag and iterate over them) to see if you can find anything useful.