Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Email profile query
Message
 
 
À
22/09/2011 14:46:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP
Network:
Windows 2003 Server
Divers
Thread ID:
01524325
Message ID:
01524359
Vues:
63
SentOnBehalfOfName has to be enable for the Outlook account

>Thank you for the pointer. I have tried setting the SentOnBehalfOfName property but am still getting an error - I will investigate further tomorrow.
>Thanks again.
>Barry.
>
>>The SenderEmailAddress property is read-only. In general, you cannot change Sender address in Outlook automation. You either have to use different profile or SentOnBehalfOfName Property
>>
>>
>>>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)
>>>
>>>* Create message object
>>>THIS.oMessage=loOutBox.Items.Add
>>>WITH THIS.oMessage
>>>	.Body=THIS.cBodyText
>>>	.Subject=THIS.cSubject
>>>	.SenderEmailAddress="myotherprofile@myco.com"
>>>ENDWITH
>>>
>>>
>>>Tks
>>>Barry.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform