PC Review


Reply
Thread Tools Rate Thread

MailItem To property and display name

 
 
Olivier Langlois
Guest
Posts: n/a
 
      11th Sep 2006
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

 
Reply With Quote
 
 
 
 
Sue Mosher [MVP-Outlook]
Guest
Posts: n/a
 
      11th Sep 2006
Try:

m.To = "FirstName LastName <(E-Mail Removed)>"

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Olivier Langlois" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> 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
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I create a MailItem that displays like a received MailItem ? Clive Microsoft Outlook Form Programming 0 27th Feb 2006 05:14 PM
Redemption - MailItem.To property Martin Los Microsoft Outlook VBA Programming 3 16th Sep 2004 12:38 AM
The controls on this property sheet are disabled because one or more other Network property sheets are already open. To use these controls, close all these property sheets and then reopen this one. =?Utf-8?B?Um9iZXJ0?= Microsoft Windows 2000 Networking 1 11th Apr 2004 12:22 AM
Set property of mailitem.to Raymond Microsoft Outlook VBA Programming 1 12th Jan 2004 02:10 PM
How to get the MailItem.SentOn property when sending email? Jenny Tam Microsoft Outlook Program Addins 4 25th Sep 2003 06:08 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:31 AM.