|
|
|
date: Sat, 04 Oct 2008 22:06:59 +0200,
group: microsoft.public.access.formscoding
back
sending mail from within access
Hi
When I send a report with following code:
DoCmd.SendObject acSendReport, "Coordinaten_rapport", acFormatHTML,
MP_Setup.Coordinaten_rapport, , , "Wijziging van coordianten ", "", False
Outlook opens a messagebox saying something about safty-stuff.
I have to click Yes to continue...
Is there a way not to get this messagebox?
Also,
WHen I write:
DoCmd.SendObject acSendNoObject, strDocName, acFormatHTML, strEmail, , ,
strMailSubject, strMsg, , False
The message itself is opened... although I added "False"
Can somebody please explain
Thanks
JP
date: Sat, 04 Oct 2008 22:06:59 +0200
author: Jean-Paul
RE: sending mail from within access
According to the help file the basic synthax is
SendObject(ObjectType, ObjectName, OutputFormat, To, Cc, Bcc, Subject,
MessageText, EditMessage, TemplateFile)
when we compre it to your code
SendObject acSendNoObject, strDocName, acFormatHTML, strEmail, , ,
strMailSubject, strMsg, , False
we can notice that you placed the False as the 10th input variable and yet
the help file indicates it should be the 9th. So try
DoCmd.SendObject acSendNoObject, strDocName, acFormatHTML, strEmail, , ,
strMailSubject, strMsg, False
--
Hope this helps,
Daniel Pineault
http://www.cardaconsultants.com/
For Access Tips and Examples: http://www.devhut.net
Please rate this post using the vote buttons if it was helpful.
"Jean-Paul" wrote:
> Hi
>
> When I send a report with following code:
>
> DoCmd.SendObject acSendReport, "Coordinaten_rapport", acFormatHTML,
> MP_Setup.Coordinaten_rapport, , , "Wijziging van coordianten ", "", False
>
> Outlook opens a messagebox saying something about safty-stuff.
> I have to click Yes to continue...
> Is there a way not to get this messagebox?
>
> Also,
>
> WHen I write:
>
> DoCmd.SendObject acSendNoObject, strDocName, acFormatHTML, strEmail, , ,
> strMailSubject, strMsg, , False
>
> The message itself is opened... although I added "False"
>
> Can somebody please explain
>
> Thanks
> JP
>
date: Sat, 4 Oct 2008 13:26:01 -0700
author: Daniel Pineault
Re: sending mail from within access
Yes, Outlook has security warnings which say something to the effect that:
An outside program is trying to send mail. Do you want to allow this.
You are required to click yes to continue. There is a 3rd party app called
Outlook Redemption that will fix this. It is free for non-corporate use, and
not very expensive for enterprise use:
http://www.dimastr.com/redemption/
I've used in effectively in all versions of Outlook which have this warning.
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com
"Jean-Paul" wrote in message
news:C1QFk.1343$qx1.623@newsfe13.ams2...
> Hi
>
> When I send a report with following code:
>
> DoCmd.SendObject acSendReport, "Coordinaten_rapport", acFormatHTML,
> MP_Setup.Coordinaten_rapport, , , "Wijziging van coordianten ", "", False
>
> Outlook opens a messagebox saying something about safty-stuff.
> I have to click Yes to continue...
> Is there a way not to get this messagebox?
>
> Also,
>
> WHen I write:
>
> DoCmd.SendObject acSendNoObject, strDocName, acFormatHTML, strEmail, , ,
> strMailSubject, strMsg, , False
>
> The message itself is opened... although I added "False"
>
> Can somebody please explain
>
> Thanks
> JP
date: Sat, 4 Oct 2008 23:20:45 -0400
author: Arvin Meyer [MVP] lid
Re: sending mail from within access
Great...
This solved an important part of the problem... So dumb.. I checked and
recheck and never thought the extra imput was the fault.
Thanks a lot
JP, Belgium
Daniel Pineault wrote:
Daniel Pineault wrote:
> According to the help file the basic synthax is
>
> SendObject(ObjectType, ObjectName, OutputFormat, To, Cc, Bcc, Subject,
> MessageText, EditMessage, TemplateFile)
>
> when we compre it to your code
>
> SendObject acSendNoObject, strDocName, acFormatHTML, strEmail, , ,
> strMailSubject, strMsg, , False
>
> we can notice that you placed the False as the 10th input variable and yet
> the help file indicates it should be the 9th. So try
>
> DoCmd.SendObject acSendNoObject, strDocName, acFormatHTML, strEmail, , ,
> strMailSubject, strMsg, False
> According to the help file the basic synthax is
>
> SendObject(ObjectType, ObjectName, OutputFormat, To, Cc, Bcc, Subject,
> MessageText, EditMessage, TemplateFile)
>
> when we compre it to your code
>
> SendObject acSendNoObject, strDocName, acFormatHTML, strEmail, , ,
> strMailSubject, strMsg, , False
>
> we can notice that you placed the False as the 10th input variable and yet
> the help file indicates it should be the 9th. So try
>
> DoCmd.SendObject acSendNoObject, strDocName, acFormatHTML, strEmail, , ,
> strMailSubject, strMsg, False
date: Sun, 05 Oct 2008 09:11:59 +0200
author: Jean-Paul
|
|