Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #6848
| From | "Jamal" <someone@example.com> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: Start Mail Client with VO |
| Date | 2014-05-15 13:52 -0400 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <ll2us1$kan$1@speranza.aioe.org> (permalink) |
| References | <d17650e0-1aad-4aea-bfae-a52effa93789@googlegroups.com> |
Option 1:
Check http://www.Mapilabs.com for Advanced Outlook Security.
Option 2:
If you have Outlook 2010 or above, go to Options, under Trust Center,
programmatic access. See more from link below if you have issues or option
is greyed out:
http://tinyurl.com/7f2qlm9
The Microsoft URL is too and was rejected by the news server. Shortened as
above link:
Jamal
"Lu" wrote in message
news:d17650e0-1aad-4aea-bfae-a52effa93789@googlegroups.com...
Hi VO experts,
Is it possible to open with shellexecute... a html mail?
ShellExecute(self:Handle(),psz(_cast,"open"),;
psz(_cast,;
"mailto:"+oRs:FIELDGET(#Email)+" "+;
"?subject=cancelation"+;
"&body="+oRs:FIELDGET(#EmailText)),null_psz,null_psz,SW_SHOWNORMAL)
I also tried it with the Function SendMailOutlook. The html mail opens
correct but there also start a security window from outlook: "A programm is
trying to access email addresses... Allow this yes no or help." AFAIK the
users will ignore this security window and the email client will not open.
When I use shellexecute the security window does not appear, but the mail
text could not be formatted.
Have you any ideas to stop the outlook security window or to send html mails
with mailto?
FUNCTION SendMailOutlook(aEmailAdresses, cSubject, cText, cFile)
LOCAL oldErrorBlock AS CODEBLOCK
LOCAL oError AS USUAL
LOCAL oOutlook AS USUAL
LOCAL oMail AS USUAL
LOCAL oAttachment AS USUAL
LOCAL nCount AS DWORD
oOutlook := Oleautoobject{"Outlook.Application"}
oldErrorBlock := ErrorBlock({|err|_Break(err)})
BEGIN SEQUENCE
ErrorBlock({|X| DummyFunction(X)})
oMail := oOutlook:CreateItem(0)
FOR nCount := 1 UPTO ALen(aEmailAdresses)
oMail:Recipients:Add(aEmailAdresses[nCount])
NEXT nCount
oMail:Subject := cSubject
oMail:HTMLBody := cTEXT
IF Len(cFile) > 0
oAttachment:=oMail:Attachments
oAttachment:Add(cFile)
ENDIF
oMail:Display()
RECOVER USING oError
ErrorBox{NIL, AsString(oError:Description)}:Show()
END SEQUENCE
ErrorBlock(oldErrorBlock)
RETURN NIL
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Start Mail Client with VO Lu <lu2k@hotmail.com> - 2014-05-15 05:04 -0700
Re: Start Mail Client with VO "Jamal" <someone@example.com> - 2014-05-15 13:52 -0400
Re: Start Mail Client with VO Mathias <mathias.hakansson@consultec.se> - 2014-05-15 22:11 -0700
Re: Start Mail Client with VO "Marc Verkade [MITCon]" <marc@mitNOSPAMconDELETE.nl> - 2014-05-19 22:23 +0200
Re: Start Mail Client with VO Lu <lu2k@hotmail.com> - 2014-05-20 08:07 -0700
Re: Start Mail Client with VO "Jamal" <someone@example.com> - 2014-05-20 11:50 -0400
Re: Start Mail Client with VO "Jamal" <someone@example.com> - 2014-05-20 12:49 -0400
Re: Start Mail Client with VO Lu <lu2k@hotmail.com> - 2014-05-21 02:16 -0700
Re: Start Mail Client with VO "Jamal" <someone@example.com> - 2014-05-21 19:04 -0400
Re: Start Mail Client with VO D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2014-05-22 23:27 +0200
Re: Start Mail Client with VO "Wolfgang Riedmann" <wriedmann@gmail.com> - 2014-05-16 07:20 +0200
Re: Start Mail Client with VO Lu <lu2k@hotmail.com> - 2014-05-16 00:15 -0700
Re: Start Mail Client with VO Mathias <mathias.hakansson@consultec.se> - 2014-05-26 07:51 -0700
csiph-web