Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #11236

Re: "Outlook.Application" sendUsingAccount

From "Alessandro Vacchiano" <alessandro@computerscenter.com>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: "Outlook.Application" sendUsingAccount
Date 2017-12-12 09:33 +0100
Organization Aioe.org NNTP Server
Message-ID <p0o48e$91r$1@gioia.aioe.org> (permalink)
References <p0m3jt$pt3$1@gioia.aioe.org> <f99c0iFbun0U1@mid.individual.net>

Show all headers | View raw


Hi Michael,

i have same code but i get an error in VO.

Thanks.

Alessandro

"Michael Hagl"  ha scritto nel messaggio 
news:f99c0iFbun0U1@mid.individual.net...

Hi Allessandro,

I´m using the following lines (but is xHarbour Code)

...
      IF !Empty(cFromAccount)
         TRY
            Account := oOutlook:Session:Accounts[cFromAccount]
            IF !(Account==NIL)
               oMsg:SendUsingAccount := Account
            ENDIF
         CATCH
         END
      ENDIF
...

Michael Hagl


"Alessandro Vacchiano" <alessandro@computerscenter.com> schrieb im
Newsbeitrag news:p0m3jt$pt3$1@gioia.aioe.org...
> 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

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

"Outlook.Application" sendUsingAccount "Alessandro Vacchiano" <alessandro@computerscenter.com> - 2017-12-11 15:10 +0100
  Re: "Outlook.Application" sendUsingAccount "Wolfgang Riedmann" <wriedmann@gmail.com> - 2017-12-11 16:10 +0100
    Re: "Outlook.Application" sendUsingAccount "Alessandro Vacchiano" <alessandro@computerscenter.com> - 2017-12-11 16:24 +0100
      Re: "Outlook.Application" sendUsingAccount "Wolfgang Riedmann" <wriedmann@gmail.com> - 2017-12-11 16:52 +0100
        Re: "Outlook.Application" sendUsingAccount "Alessandro Vacchiano" <alessandro@computerscenter.com> - 2017-12-12 10:05 +0100
    Re: "Outlook.Application" sendUsingAccount "Jamal" <noooospam@example.com> - 2017-12-13 12:49 -0500
    Re: "Outlook.Application" sendUsingAccount "Jamal" <noooospam@example.com> - 2017-12-13 20:04 -0500
      Re: "Outlook.Application" sendUsingAccount "Wolfgang Riedmann" <wriedmann@gmail.com> - 2017-12-15 05:24 +0100
  Re: "Outlook.Application" sendUsingAccount "Michael Hagl" <haglmi@hagl.de> - 2017-12-12 07:41 +0100
    Re: "Outlook.Application" sendUsingAccount "Alessandro Vacchiano" <alessandro@computerscenter.com> - 2017-12-12 09:33 +0100
  Re: "Outlook.Application" sendUsingAccount "Alessandro Vacchiano" <alessandro@computerscenter.com> - 2017-12-12 10:49 +0100

csiph-web