Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Forms / November 2003

Tip: Looking for answers? Try searching our database.

Problem with Item.SenderName

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Amit Basu - 25 Nov 2003 23:40 GMT
Hi,

I send an Outlook form as a MailItem outside of our domain. The
recipient needs to forward that mail, after making some modifications to
the form, to a set of people WHO ARE NOT in his Contacts. I need to fill
the addressee list programmatically. Here is what I used:

Function Item_Forward(ByVal ForwardItem)
       ForwardItem.To = Item.Sendername
    ForwardItem.Cc = "abc@xyz.com"
End Function

The To addressee is getting populated with the DISPLAY NAME of the
Sender like "John Doe" and not the email ID. As a result it is not being
resolved and generating an error while Sending the form. How do I
retrieve the email ID of the sender and not the display name?

I am using Outlook 2000 and Exchange 5.5?

TIA,
Amit.
Sue Mosher [MVP] - 26 Nov 2003 04:15 GMT
There is no Outlook property that returns the sender's email address. You can either use CDO (or Redemption to avoid security prompts -- http://www.dimastr.com/redemption/) to get the From address or use Outlook to get the Reply To address. Sample code at http://www.slipstick.com/dev/code/getsenderaddy.htm.

Signature

Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
    Microsoft Outlook Programming: Jumpstart
    for Administrators, Power Users, and Developers
    http://www.outlookcode.com/jumpstart.aspx 

> Hi,
>
[quoted text clipped - 17 lines]
> TIA,
> Amit.
Amit Basu - 26 Nov 2003 22:16 GMT
Sue, Thanks a lot.

There is no Outlook property that returns the sender's email address.
You can either use CDO (or Redemption to avoid security prompts --
http://www.dimastr.com/redemption/) to get the From address or use
Outlook to get the Reply To address. Sample code at
http://www.slipstick.com/dev/code/getsenderaddy.htm.

Signature

Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
    Microsoft Outlook Programming: Jumpstart
    for Administrators, Power Users, and Developers
    http://www.outlookcode.com/jumpstart.aspx 

> Hi,
>
[quoted text clipped - 17 lines]
> TIA,
> Amit.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.