MailItem To property and display name

O

Olivier Langlois

Hi,

I would like to know if there is a way to format the string passed to
the 'To' property to specify to Outlook a 'display name' along with the
e-mail address provided to 'To'.

If not, what are the alternatives to provide a pair Display name/email
address to a newly created MailItem?

Thank you,
Olivier Langlois
http://www.olivierlanglois.net
 
S

Sue Mosher [MVP-Outlook]

Try:

m.To = "FirstName LastName <[email protected]>"

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top