Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Wolfgang Riedmann" Newsgroups: comp.lang.clipper.visual-objects Subject: Re: "Outlook.Application" sendUsingAccount Date: Mon, 11 Dec 2017 16:52:29 +0100 Lines: 75 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Trace: individual.net oQ7N6DoeWDrFl9HWLSsnAQrSraEZDvNQTmk/7BCPoRfJjFzu8= Cancel-Lock: sha1:K2TnxApNIHKR3ucUoNojcP+j/DU= User-Agent: XanaNews/1.18.1.6 Xref: csiph.com comp.lang.clipper.visual-objects:11234 Hi Alessandro, I have to check my sample. Wolfgang Alessandro Vacchiano wrote: > Ciao Wolfgang, > i try to pass by reference, i not get errors but it doesn't work. > Outlook still use it's default account. > > Any other suggestion ? > > > Alessandro > > "Wolfgang Riedmann" ha scritto nel messaggio > news:f97lf6Fug3hU1@mid.individual.net... > > Ciao Alessandro, > > unfortunately SendUsingAccount does not work when you have Exchange > accounts. > > But it should work with POP-Accounts. > > You have to pass the account by reference: > > oMail:sendUsingAccount: = @oAccount > > Wolfgang > > > > Alessandro Vacchiano wrote: > > > Hi to all, > > > > i need to send email by Outlook and send it by selecting an Account. > > This code reads all accounts from my outlook: > > > > oOutlook: OLEAutoObject = {"Outlook.Application"} > > oAccounts: = oOutlook: Session: Accounts > > > > for i: = 1 upto oAccounts: Count > > oAccount: = oAccounts: item (s) > > > > ? oAccount: Displayname > > next > > > > > > Now when i send an eMail i need to send with one of this but i got > > an OLE Error. > > > > oAccounts: = oOutlook: Session: Accounts > > oAccount: = oAccounts: item (3) > > > > > > .. i prepare the email then: > > > > oMail: sendUsingAccount: = oAccount > > > > oMail: Send () > > > > sendUsingAccount not work i get error, some suggestion? > > > > Thanks a lot > > > > Alessandro --