Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #6846 > unrolled thread
| Started by | Lu <lu2k@hotmail.com> |
|---|---|
| First post | 2014-05-15 05:04 -0700 |
| Last post | 2014-05-26 07:51 -0700 |
| Articles | 13 — 6 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
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
| From | Lu <lu2k@hotmail.com> |
|---|---|
| Date | 2014-05-15 05:04 -0700 |
| Subject | Start Mail Client with VO |
| Message-ID | <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
[toc] | [next] | [standalone]
| From | "Jamal" <someone@example.com> |
|---|---|
| Date | 2014-05-15 13:52 -0400 |
| Message-ID | <ll2us1$kan$1@speranza.aioe.org> |
| In reply to | #6846 |
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
[toc] | [prev] | [next] | [standalone]
| From | Mathias <mathias.hakansson@consultec.se> |
|---|---|
| Date | 2014-05-15 22:11 -0700 |
| Message-ID | <47874f0c-1778-4a78-9ed6-8921d0200ae2@googlegroups.com> |
| In reply to | #6846 |
You can use MAPI to create an e-mail without security check. This e-mail is not sent, only created and presented to the user. The user can send it by pressing "Send".
Check out Marc Verkades sample on http://cavo.marti.nl/samples/sendemailmapi.txt.
/Mathias
Den torsdagen den 15:e maj 2014 kl. 14:04:30 UTC+2 skrev Lu:
> 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
[toc] | [prev] | [next] | [standalone]
| From | "Marc Verkade [MITCon]" <marc@mitNOSPAMconDELETE.nl> |
|---|---|
| Date | 2014-05-19 22:23 +0200 |
| Message-ID | <537a685b$0$17655$6d5eeec5@news.sunnyusenet.com> |
| In reply to | #6851 |
Funny, my sample page still exists....
"Mathias" schreef in bericht
news:47874f0c-1778-4a78-9ed6-8921d0200ae2@googlegroups.com...
You can use MAPI to create an e-mail without security check. This e-mail is
not sent, only created and presented to the user. The user can send it by
pressing "Send".
Check out Marc Verkades sample on
http://cavo.marti.nl/samples/sendemailmapi.txt.
/Mathias
Den torsdagen den 15:e maj 2014 kl. 14:04:30 UTC+2 skrev Lu:
> 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
[toc] | [prev] | [next] | [standalone]
| From | Lu <lu2k@hotmail.com> |
|---|---|
| Date | 2014-05-20 08:07 -0700 |
| Message-ID | <40577826-9cb2-4ede-88a9-c41e6a084281@googlegroups.com> |
| In reply to | #6869 |
Hi Marc! Your sample works great, if there would not be the outlook security window :-(. Now, I will open the email client with ShellExecute and mailto because it is the fastest solution, and there is no security window. Your solution would be nicer. Lu
[toc] | [prev] | [next] | [standalone]
| From | "Jamal" <someone@example.com> |
|---|---|
| Date | 2014-05-20 11:50 -0400 |
| Message-ID | <llftkk$oa7$1@speranza.aioe.org> |
| In reply to | #6870 |
Lu, Did you see my post, option 1? Jamal "Lu" wrote in message news:40577826-9cb2-4ede-88a9-c41e6a084281@googlegroups.com... Hi Marc! Your sample works great, if there would not be the outlook security window :-(. Now, I will open the email client with ShellExecute and mailto because it is the fastest solution, and there is no security window. Your solution would be nicer. Lu
[toc] | [prev] | [next] | [standalone]
| From | "Jamal" <someone@example.com> |
|---|---|
| Date | 2014-05-20 12:49 -0400 |
| Message-ID | <llg123$2d9$1@speranza.aioe.org> |
| In reply to | #6871 |
The link should have been: http://www.mapilab.com/outlook/security As per their site: Advanced Security for Outlook is free for commercial and non-commercial use Jamal "Jamal" wrote in message news:llftkk$oa7$1@speranza.aioe.org... Lu, Did you see my post, option 1? Jamal "Lu" wrote in message news:40577826-9cb2-4ede-88a9-c41e6a084281@googlegroups.com... Hi Marc! Your sample works great, if there would not be the outlook security window :-(. Now, I will open the email client with ShellExecute and mailto because it is the fastest solution, and there is no security window. Your solution would be nicer. Lu
[toc] | [prev] | [next] | [standalone]
| From | Lu <lu2k@hotmail.com> |
|---|---|
| Date | 2014-05-21 02:16 -0700 |
| Message-ID | <fe3051ff-7231-4343-9d10-079767b894c1@googlegroups.com> |
| In reply to | #6872 |
Hi Jamal! Thank you for your answers. I have seen your options, the problem is that I can not install programs on the client computers apart from the VO programs. Maybe the security manager from here: http://www.add-in-express.com/purchase/index.php?family=osm#qty11|1 would be a solution, but this is not for free. Lu
[toc] | [prev] | [next] | [standalone]
| From | "Jamal" <someone@example.com> |
|---|---|
| Date | 2014-05-21 19:04 -0400 |
| Message-ID | <lljbd9$6pb$1@speranza.aioe.org> |
| In reply to | #6879 |
Lu, Then my suggestion is to forget about mapi and mailto to Outlook and use and supplied email classes in VO, and even better use a third party ActiveX DLL or write a .NET COM wrapper. I would go with an activex; there are several in the market. Jamal "Lu" wrote in message news:fe3051ff-7231-4343-9d10-079767b894c1@googlegroups.com... Hi Jamal! Thank you for your answers. I have seen your options, the problem is that I can not install programs on the client computers apart from the VO programs. Maybe the security manager from here: http://www.add-in-express.com/purchase/index.php?family=osm#qty11|1 would be a solution, but this is not for free. Lu
[toc] | [prev] | [next] | [standalone]
| From | D.J.W. van Kooten <vankooten@removethis.ic2.com> |
|---|---|
| Date | 2014-05-22 23:27 +0200 |
| Message-ID | <ilqsn9h26r7cp7bb9rv76s6kg9qq4o8vik@4ax.com> |
| In reply to | #6883 |
On Wed, 21 May 2014 19:04:13 -0400, "Jamal" <someone@example.com> wrote: Hello Lu, > >Then my suggestion is to forget about mapi and mailto to Outlook and use and >supplied email classes in VO, and even better use a third party ActiveX DLL >or write a .NET COM wrapper. > We used the VO 2.8 classes, removed all the bugs (I guess the 'official' class still contains them) but finally moved to Chilkat. This was because after adding the missing IMAP to the VO classes, we noticed that the VO classes also missed SSL support and that you need to use Exchange servers. Chilkat did have this working fine, and much more, like more controlable FTP, etc. If you don't need SSL and want to to use the VO class, I recommend to use 'our' Internet.aef instead. Just let me know and I'll mail it to you. Dick
[toc] | [prev] | [next] | [standalone]
| From | "Wolfgang Riedmann" <wriedmann@gmail.com> |
|---|---|
| Date | 2014-05-16 07:20 +0200 |
| Message-ID | <btllgpFbri3U1@mid.individual.net> |
| In reply to | #6846 |
Hi Lu, option 2: use Outlook Redemption http://www.dimastr.com/redemption/home.htm This OLE DLL lets you not only use Outlook without the security warning, but also access Exchange directly without having Outlook installed. Wolfgang --
[toc] | [prev] | [next] | [standalone]
| From | Lu <lu2k@hotmail.com> |
|---|---|
| Date | 2014-05-16 00:15 -0700 |
| Message-ID | <0ac78103-6a8d-4f23-9c3b-414b0061223d@googlegroups.com> |
| In reply to | #6852 |
Thank you for your answers. @Mathias I tried your tip with MAPI but does it support HTML Mails? Maybe I have done something wrong but when the new message window opens the message text beginns with <html><Body>..... Is it possible to change/configure this to html mail? Lu
[toc] | [prev] | [next] | [standalone]
| From | Mathias <mathias.hakansson@consultec.se> |
|---|---|
| Date | 2014-05-26 07:51 -0700 |
| Message-ID | <2efd7238-66c7-4651-8bbf-8667a86a738b@googlegroups.com> |
| In reply to | #6853 |
Try sending an empty body with a html-file as attachment. /Mathias Den fredagen den 16:e maj 2014 kl. 09:15:40 UTC+2 skrev Lu: > Thank you for your answers. > > > > @Mathias > > I tried your tip with MAPI but does it support HTML Mails? Maybe I have done something wrong but when the new message window opens the message text beginns with <html><Body>..... > > Is it possible to change/configure this to html mail? > > > > Lu
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web