Can I somehow access the Global Address List from SQL ? Before you start scratching your head. The old send mail function (xp_SendMail) was using mapi to find the email address. New (sp_send_dmail) needs the full smtp email address. Users will be there forever getting this correct.
I was thinking of creating an Alias table to cross reference and do some funky coding in the stored procedure. However, it will be another table to maintain, a lot of logic would have to be added to mimic finding the email address in my table, etc. I thought of appending the lengthy @xxxxxxxxxxxxx after each name which is typed in but it still would require getting the 1st letter and last name spelled correctly for each recipient. Still not the best solution.
Remember when... everything worked and there was a reason for it?
I was thinking of creating an Alias table to cross reference and do some funky coding in the stored procedure. However, it will be another table to maintain, a lot of logic would have to be added to mimic finding the email address in my table, etc. I thought of appending the lengthy @xxxxxxxxxxxxx after each name which is typed in but it still would require getting the 1st letter and last name spelled correctly for each recipient. Still not the best solution.
Remember when... everything worked and there was a reason for it?