changed the email dialog so it actually honours the target email type
(To, CC, BCC) rather than using fixed values.