Dear Experts,
I have a form in which a have a crystal report in which a make a pdf file.
code is :
oCRApp = CREATEOBJECT("crystalruntime.application"
oRep = oCRApp.OpenReport("offerte.rpt"
oExport = oRep.Exportoptions()
oExport.Destinationtype = 1
oExport.FormatType = 31
oExport.Diskfilename = "&xxattach"
orep.Export(.F.)
m.xxmail =ALLTRIM(m.ccoemail)
m.xxsubject ="OFFERTE"
m.xxbody="Hierbij zenden wij U de aangevraagde offerte"
DO mailzend
So far no problem
In my prg mailzend is the following code :
cSubject = m.xxsubject
cAddress = m.xxmail
cBody = m.xxbody
cattach=m.xxattach
DO doMail WITH cSubject,cAddress,cBody
**********************************************************
PROCEDURE doMail
PARAMETERS cSubject, cAddress, cBody
o=createobject("outlook.application"
oitem=o.createitem(0)
oitem.Attachments.Add("&cattach"
&&Full path required
oitem.subject= cSubject
oitem.to= cAddress
oitem.body= cBody
oitem.send
o=.null.
RETURN
**********************************************************
so far no problem, but when it start sending I always get te same message from outlook (it is in dutch so i will try to translate)
"A program trys automatically to send e-mails in your name.
Do You want to allow this ?"
Can I avoid to get this message
I have a form in which a have a crystal report in which a make a pdf file.
code is :
oCRApp = CREATEOBJECT("crystalruntime.application"
oRep = oCRApp.OpenReport("offerte.rpt"
oExport = oRep.Exportoptions()
oExport.Destinationtype = 1
oExport.FormatType = 31
oExport.Diskfilename = "&xxattach"
orep.Export(.F.)
m.xxmail =ALLTRIM(m.ccoemail)
m.xxsubject ="OFFERTE"
m.xxbody="Hierbij zenden wij U de aangevraagde offerte"
DO mailzend
So far no problem
In my prg mailzend is the following code :
cSubject = m.xxsubject
cAddress = m.xxmail
cBody = m.xxbody
cattach=m.xxattach
DO doMail WITH cSubject,cAddress,cBody
**********************************************************
PROCEDURE doMail
PARAMETERS cSubject, cAddress, cBody
o=createobject("outlook.application"
oitem=o.createitem(0)
oitem.Attachments.Add("&cattach"
oitem.subject= cSubject
oitem.to= cAddress
oitem.body= cBody
oitem.send
o=.null.
RETURN
**********************************************************
so far no problem, but when it start sending I always get te same message from outlook (it is in dutch so i will try to translate)
"A program trys automatically to send e-mails in your name.
Do You want to allow this ?"
Can I avoid to get this message