Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #11231 > unrolled thread
| Started by | "Alessandro Vacchiano" <alessandro@computerscenter.com> |
|---|---|
| First post | 2017-12-11 15:10 +0100 |
| Last post | 2017-12-12 10:49 +0100 |
| Articles | 11 — 4 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
"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
| From | "Alessandro Vacchiano" <alessandro@computerscenter.com> |
|---|---|
| Date | 2017-12-11 15:10 +0100 |
| Subject | "Outlook.Application" sendUsingAccount |
| Message-ID | <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
[toc] | [next] | [standalone]
| From | "Wolfgang Riedmann" <wriedmann@gmail.com> |
|---|---|
| Date | 2017-12-11 16:10 +0100 |
| Message-ID | <f97lf6Fug3hU1@mid.individual.net> |
| In reply to | #11231 |
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
--
[toc] | [prev] | [next] | [standalone]
| From | "Alessandro Vacchiano" <alessandro@computerscenter.com> |
|---|---|
| Date | 2017-12-11 16:24 +0100 |
| Message-ID | <p0m86c$15gf$1@gioia.aioe.org> |
| In reply to | #11232 |
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
--
[toc] | [prev] | [next] | [standalone]
| From | "Wolfgang Riedmann" <wriedmann@gmail.com> |
|---|---|
| Date | 2017-12-11 16:52 +0100 |
| Message-ID | <f97ntuFidgU1@mid.individual.net> |
| In reply to | #11233 |
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
--
[toc] | [prev] | [next] | [standalone]
| From | "Alessandro Vacchiano" <alessandro@computerscenter.com> |
|---|---|
| Date | 2017-12-12 10:05 +0100 |
| Message-ID | <p0o649$c7b$1@gioia.aioe.org> |
| In reply to | #11234 |
ok thanks
Ciao
"Wolfgang Riedmann" ha scritto nel messaggio
news:f97ntuFidgU1@mid.individual.net...
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
--
[toc] | [prev] | [next] | [standalone]
| From | "Jamal" <noooospam@example.com> |
|---|---|
| Date | 2017-12-13 12:49 -0500 |
| Message-ID | <p0rp80$790$1@news.albasani.net> |
| In reply to | #11232 |
Hi Wolfgang,
>> unfortunately SendUsingAccount does not work when you have Exchange
>> accounts. <<
In my case Outlook refuses to use anything other than the "primary" Exchange
account in Outlook.
I have 3 three exchange Microsoft accounts and some IMAP Gmail accounts in
Outlook. If try a Gmail account, it does not work.
So, the SendUsingAccount is not reliable and I prefer to use a third part
email library which does not rely on Outlook.
I am try posting this, so others are aware of this scenario.
Jamal
"Wolfgang Riedmann" wrote in message
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
--
[toc] | [prev] | [next] | [standalone]
| From | "Jamal" <noooospam@example.com> |
|---|---|
| Date | 2017-12-13 20:04 -0500 |
| Message-ID | <p0sink$788$1@news.albasani.net> |
| In reply to | #11232 |
Hi Wolfgang,
>> unfortunately SendUsingAccount does not work when you have Exchange
>> accounts. <<
In my case Outlook refuses to use anything other than the "primary" Exchange
account in Outlook.
I have 3 three exchange Microsoft accounts and some IMAP Gmail accounts in
Outlook. If try a Gmail account, it does not work.
So, the SendUsingAccount is not reliable and I prefer to use a third part
email library which does not rely on Outlook.
I am posting this, so others are aware of this scenario.
Jamal
"Wolfgang Riedmann" wrote in message
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
--
[toc] | [prev] | [next] | [standalone]
| From | "Wolfgang Riedmann" <wriedmann@gmail.com> |
|---|---|
| Date | 2017-12-15 05:24 +0100 |
| Message-ID | <f9h14aF50euU1@mid.individual.net> |
| In reply to | #11240 |
Hi Jamal,
you are right. If you need to send emails using another than the
default Exchange account, you need to start Outlook using another
profile with the correct account as only one.
This issue has costed me more than an entire day... And it is also
confirmed by the author of the excellent Redemption library.
Wolfgang
Jamal wrote:
> Hi Wolfgang,
>
> >> unfortunately SendUsingAccount does not work when you have Exchange
> > > accounts. <<
>
> In my case Outlook refuses to use anything other than the "primary"
> Exchange account in Outlook.
> I have 3 three exchange Microsoft accounts and some IMAP Gmail
> accounts in Outlook. If try a Gmail account, it does not work.
> So, the SendUsingAccount is not reliable and I prefer to use a third
> part email library which does not rely on Outlook.
>
> I am posting this, so others are aware of this scenario.
>
> Jamal
>
> "Wolfgang Riedmann" wrote in message
> 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
--
[toc] | [prev] | [next] | [standalone]
| From | "Michael Hagl" <haglmi@hagl.de> |
|---|---|
| Date | 2017-12-12 07:41 +0100 |
| Message-ID | <f99c0iFbun0U1@mid.individual.net> |
| In reply to | #11231 |
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
[toc] | [prev] | [next] | [standalone]
| From | "Alessandro Vacchiano" <alessandro@computerscenter.com> |
|---|---|
| Date | 2017-12-12 09:33 +0100 |
| Message-ID | <p0o48e$91r$1@gioia.aioe.org> |
| In reply to | #11235 |
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
[toc] | [prev] | [next] | [standalone]
| From | "Alessandro Vacchiano" <alessandro@computerscenter.com> |
|---|---|
| Date | 2017-12-12 10:49 +0100 |
| Message-ID | <p0o8nd$h48$1@gioia.aioe.org> |
| In reply to | #11231 |
Solved,
i don't kno how but is a Method ando not an access, this work :
oMail:sendUsingAccount(@oAccount)
oMail:sendUsingAccount(oAccount)
work both .
Bye Alessandro
"Alessandro Vacchiano" ha scritto nel messaggio
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
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web