A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

ResolveAll doesn't underline in the mail's "To"



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 22nd 07, 01:04 AM posted to microsoft.public.outlook.program_addins
Klemens
external usenet poster
 
Posts: 7
Default ResolveAll doesn't underline in the mail's "To"

I'm using redemption to assemble a new mail with a list of recipients
from a different source. My code looks like this,,,

oSaveMail.Item = moMailItem
Set oRecipient = oApptItem.Recipients(i)
' ignore resources etc
Set oSaveRecp = oSaveMail.Recipients.AddEx(strRecipient, , , olTo)
oSaveRecp.Resolve False
strRecipient = oRecipient.Address
'set mail "To" and resolve
oSaveMail.To = strRecipients
oSaveMail.Recipients.ResolveAll
'moMailItem.Recipients.ResolveAll

As a result the recipients in the "To" field are not underlined. But I
want the m to be. When I use the last line instead, it becomes
underlined but shows a security popup.

Any idea?

- Klemens

  #2  
Old June 22nd 07, 06:01 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default ResolveAll doesn't underline in the mail's "To"

Outlook cannot see changes made by MAPI until the item is completely
dereferenced and reopened.
Do you modify recipients of a message that is already being displayed or you
call Display after you add and resolve the recipients?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Klemens" wrote in message
ups.com...
I'm using redemption to assemble a new mail with a list of recipients
from a different source. My code looks like this,,,

oSaveMail.Item = moMailItem
Set oRecipient = oApptItem.Recipients(i)
' ignore resources etc
Set oSaveRecp = oSaveMail.Recipients.AddEx(strRecipient, , , olTo)
oSaveRecp.Resolve False
strRecipient = oRecipient.Address
'set mail "To" and resolve
oSaveMail.To = strRecipients
oSaveMail.Recipients.ResolveAll
'moMailItem.Recipients.ResolveAll

As a result the recipients in the "To" field are not underlined. But I
want the m to be. When I use the last line instead, it becomes
underlined but shows a security popup.

Any idea?

- Klemens



  #3  
Old June 22nd 07, 06:49 PM posted to microsoft.public.outlook.program_addins
Klemens
external usenet poster
 
Posts: 7
Default ResolveAll doesn't underline in the mail's "To"

This form is opened from the Outlook menu and I intercept the
NewInspector event and populate the form and the reciepients there. I
suspect this is "too late". First I was wondering why it work incase I
call ResolveAll on the Outlook item. But now it is obvious.

On 22 Jun., 19:01, "Dmitry Streblechenko" wrote:
Outlook cannot see changes made by MAPI until the item is completely
dereferenced and reopened.
Do you modify recipients of a message that is already being displayed or you
call Display after you add and resolve the recipients?

Dmitry Streblechenko (MVP)http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Klemens" wrote in message

ups.com...



I'm using redemption to assemble a new mail with a list of recipients
from a different source. My code looks like this,,,


oSaveMail.Item = moMailItem
Set oRecipient = oApptItem.Recipients(i)
' ignore resources etc
Set oSaveRecp = oSaveMail.Recipients.AddEx(strRecipient, , , olTo)
oSaveRecp.Resolve False
strRecipient = oRecipient.Address
'set mail "To" and resolve
oSaveMail.To = strRecipients
oSaveMail.Recipients.ResolveAll
'moMailItem.Recipients.ResolveAll


As a result the recipients in the "To" field are not underlined. But I
want the m to be. When I use the last line instead, it becomes
underlined but shows a security popup.


Any idea?


- Klemens- Zitierten Text ausblenden -


- Zitierten Text anzeigen -



  #4  
Old June 22nd 07, 07:40 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default ResolveAll doesn't underline in the mail's "To"

In most cases adding and deleting a user property forces Outlook to refresh
the recipients list, I don't know if that will work in the NewInspector
event:

Prop = moMailItem.UserProperties.Add("test", olText);

Prop.Value = "test";

Prop.Delete();


Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Klemens" wrote in message
oups.com...
This form is opened from the Outlook menu and I intercept the
NewInspector event and populate the form and the reciepients there. I
suspect this is "too late". First I was wondering why it work incase I
call ResolveAll on the Outlook item. But now it is obvious.

On 22 Jun., 19:01, "Dmitry Streblechenko" wrote:
Outlook cannot see changes made by MAPI until the item is completely
dereferenced and reopened.
Do you modify recipients of a message that is already being displayed or
you
call Display after you add and resolve the recipients?

Dmitry Streblechenko (MVP)http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Klemens" wrote in message

ups.com...



I'm using redemption to assemble a new mail with a list of recipients
from a different source. My code looks like this,,,


oSaveMail.Item = moMailItem
Set oRecipient = oApptItem.Recipients(i)
' ignore resources etc
Set oSaveRecp = oSaveMail.Recipients.AddEx(strRecipient, , , olTo)
oSaveRecp.Resolve False
strRecipient = oRecipient.Address
'set mail "To" and resolve
oSaveMail.To = strRecipients
oSaveMail.Recipients.ResolveAll
'moMailItem.Recipients.ResolveAll


As a result the recipients in the "To" field are not underlined. But I
want the m to be. When I use the last line instead, it becomes
underlined but shows a security popup.


Any idea?


- Klemens- Zitierten Text ausblenden -


- Zitierten Text anzeigen -





  #5  
Old June 22nd 07, 08:06 PM posted to microsoft.public.outlook.program_addins
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default ResolveAll doesn't underline in the mail's "To"

Apparently getting the Body property can also have the same effect. Weird, yes?

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Dmitry Streblechenko" wrote in message ...
In most cases adding and deleting a user property forces Outlook to refresh
the recipients list, I don't know if that will work in the NewInspector
event:

Prop = moMailItem.UserProperties.Add("test", olText);

Prop.Value = "test";

Prop.Delete();


Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Klemens" wrote in message
oups.com...
This form is opened from the Outlook menu and I intercept the
NewInspector event and populate the form and the reciepients there. I
suspect this is "too late". First I was wondering why it work incase I
call ResolveAll on the Outlook item. But now it is obvious.

On 22 Jun., 19:01, "Dmitry Streblechenko" wrote:
Outlook cannot see changes made by MAPI until the item is completely
dereferenced and reopened.
Do you modify recipients of a message that is already being displayed or
you
call Display after you add and resolve the recipients?

Dmitry Streblechenko (MVP)http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Klemens" wrote in message

ups.com...



I'm using redemption to assemble a new mail with a list of recipients
from a different source. My code looks like this,,,

oSaveMail.Item = moMailItem
Set oRecipient = oApptItem.Recipients(i)
' ignore resources etc
Set oSaveRecp = oSaveMail.Recipients.AddEx(strRecipient, , , olTo)
oSaveRecp.Resolve False
strRecipient = oRecipient.Address
'set mail "To" and resolve
oSaveMail.To = strRecipients
oSaveMail.Recipients.ResolveAll
'moMailItem.Recipients.ResolveAll

As a result the recipients in the "To" field are not underlined. But I
want the m to be. When I use the last line instead, it becomes
underlined but shows a security popup.

Any idea?

- Klemens- Zitierten Text ausblenden -

- Zitierten Text anzeigen -





  #6  
Old June 22nd 07, 08:51 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default ResolveAll doesn't underline in the mail's "To"

Weird is the definition of "Outlook" in most dictionaries :-)

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Sue Mosher [MVP-Outlook]" wrote in message
...
Apparently getting the Body property can also have the same effect. Weird,
yes?

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Dmitry Streblechenko" wrote in message
...
In most cases adding and deleting a user property forces Outlook to
refresh
the recipients list, I don't know if that will work in the NewInspector
event:

Prop = moMailItem.UserProperties.Add("test", olText);

Prop.Value = "test";

Prop.Delete();


Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Klemens" wrote in message
oups.com...
This form is opened from the Outlook menu and I intercept the
NewInspector event and populate the form and the reciepients there. I
suspect this is "too late". First I was wondering why it work incase I
call ResolveAll on the Outlook item. But now it is obvious.

On 22 Jun., 19:01, "Dmitry Streblechenko" wrote:
Outlook cannot see changes made by MAPI until the item is completely
dereferenced and reopened.
Do you modify recipients of a message that is already being displayed or
you
call Display after you add and resolve the recipients?

Dmitry Streblechenko (MVP)http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Klemens" wrote in message

ups.com...



I'm using redemption to assemble a new mail with a list of recipients
from a different source. My code looks like this,,,

oSaveMail.Item = moMailItem
Set oRecipient = oApptItem.Recipients(i)
' ignore resources etc
Set oSaveRecp = oSaveMail.Recipients.AddEx(strRecipient, , , olTo)
oSaveRecp.Resolve False
strRecipient = oRecipient.Address
'set mail "To" and resolve
oSaveMail.To = strRecipients
oSaveMail.Recipients.ResolveAll
'moMailItem.Recipients.ResolveAll

As a result the recipients in the "To" field are not underlined. But I
want the m to be. When I use the last line instead, it becomes
underlined but shows a security popup.

Any idea?

- Klemens- Zitierten Text ausblenden -

- Zitierten Text anzeigen -







 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook 2007 / 2003: Error 0x800CCC81 - E-Mail address with "." before "@" Stephan Kuehn Outlook - General Queries 10 January 25th 07 06:09 PM
Include "Telecommuting" or "Teleworking" as a "Show time as" statu Gordon Greene Outlook - Calandaring 0 July 31st 06 03:37 PM
Cannot "Open" "Import/Export' or use "Data File Management" Ed Isenberg Outlook - Installation 3 July 16th 06 12:31 AM
Outlook express address book, "tools", "option" feature missing f. Brad Outlook - Using Contacts 3 March 11th 06 11:46 PM
How do I remove the "UNDERLINE" function that happens to all my e. Cal Outlook - Installation 2 February 23rd 06 03:24 PM


All times are GMT +1. The time now is 03:58 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.