Hi
I am trying to use MAPI mail to send an email from an Outlook client on an Exchange system but have the email sent from another profile other than the one currently open (if one is open at all). I am trying to track down the properties that i need to set in a message object to achieve this. Can any one point me in the right direction?
I thought I had tracked it down to the SenderEmailAddress property (I am using the code below) but this errors straight off when trying to set the property to the indicated string, not even at the Send stage!
loNameSpace=loApplication.GetNameSpace("MAPI")
loOutBox=loNameSpace.GetDefaultFolder(4)
THIS.oMessage=loOutBox.Items.Add
WITH THIS.oMessage
.Body=THIS.cBodyText
.Subject=THIS.cSubject
.SenderEmailAddress="myotherprofile@myco.com"
ENDWITH
Tks
Barry.