Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Recipients address not always valid
Message
From
24/04/2003 07:11:09
 
 
To
24/04/2003 00:44:18
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00780998
Message ID:
00781035
Views:
17
Hi Again Michel.

However, for specific emails, when I am in Outlook, when clicking on Reply, I can see the email of the sender. However, loReply.Recipients.Item(1).Address will return a blank value for some of them. How can I update this code to make sure that I will always be able to obtain the same value as in Outlook for the email of the sender?

To address this specific problem, does this help?
*** First see if the sender name actually IS 
*** an e-mail address 
if '@' $ loItem.SenderName   
  lcSenderEm2 = loItem.SenderName 
else  
  if empty(loItem.To)
    *** don't reply - this is just a draft   
    lcSenderEm2 = "Draft"  
  else
    loReply = loItem.Reply()    
    loRecip = loReply.Recipients[ 1 ]    
    lcSenderEm2 = IIF( NOT EMPTY( loRecip.Address ), ;
      loRecip.Address, loRecip.Name )
  endif
endif
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform