Hi Experts,
A have a program to make an email, no big deal.
Only a want to add a picture below the text.
is this possible.
My code is like this
oCRApp = CREATEOBJECT("crystalruntime.application")
oRep = oCRApp.OpenReport("s:\merlijn\exbestel.rpt")
oExport = oRep.Exportoptions()
oExport.Destinationtype = 1
oExport.FormatType = 31
oExport.Diskfilename = "&xxattach"
oRep.EXPORT(.F.)
m.xxsubject ="ORDERBEVESTIGING"
m.xxbody ="Geachte Klant,"+CHR(13)+CHR(10)+CHR(13)+CHR(10)+ "Gelieve de in bijlage bijgevoegde bestelling te controleren "+CHR(13)+CHR(10)+;
"Indien U vragen hieromtrend staat het verkoopsteam altijd ter Uwer beschikking."+CHR(13)+CHR(10)+;
"Gelieve bij afhaling uw bestelnummer(staat op de pdf) te vermelden."+CHR(13)+CHR(10)+;
+CHR(13)+CHR(10) +"Met vriendelijke groeten,"+CHR(13)+CHR(10)+"Het Verkoopsteam"
o=CREATEOBJECT("outlook.application")
TRY
oitem = o.createitem(0)
CATCH TO loException WHEN INLIST(loException.ERRORNO,1427,1429)
MESSAGEBOX("You didn't allow this program to use outlook or outlook isn't open, please try again",0,"this program")
ENDTRY
o=CREATEOBJECT("outlook.application")
oitem = o.createitem(0)
oitem.subject = m.xxsubject
oitem.TO = m.xxto
oitem.cc = '
oitem.bcc = '
oitem.Attachments.ADD("&xxattach")
oitem.body = m.xxbody
oitem.display()
A have a program to make an email, no big deal.
Only a want to add a picture below the text.
is this possible.
My code is like this
oCRApp = CREATEOBJECT("crystalruntime.application")
oRep = oCRApp.OpenReport("s:\merlijn\exbestel.rpt")
oExport = oRep.Exportoptions()
oExport.Destinationtype = 1
oExport.FormatType = 31
oExport.Diskfilename = "&xxattach"
oRep.EXPORT(.F.)
m.xxsubject ="ORDERBEVESTIGING"
m.xxbody ="Geachte Klant,"+CHR(13)+CHR(10)+CHR(13)+CHR(10)+ "Gelieve de in bijlage bijgevoegde bestelling te controleren "+CHR(13)+CHR(10)+;
"Indien U vragen hieromtrend staat het verkoopsteam altijd ter Uwer beschikking."+CHR(13)+CHR(10)+;
"Gelieve bij afhaling uw bestelnummer(staat op de pdf) te vermelden."+CHR(13)+CHR(10)+;
+CHR(13)+CHR(10) +"Met vriendelijke groeten,"+CHR(13)+CHR(10)+"Het Verkoopsteam"
o=CREATEOBJECT("outlook.application")
TRY
oitem = o.createitem(0)
CATCH TO loException WHEN INLIST(loException.ERRORNO,1427,1429)
MESSAGEBOX("You didn't allow this program to use outlook or outlook isn't open, please try again",0,"this program")
ENDTRY
o=CREATEOBJECT("outlook.application")
oitem = o.createitem(0)
oitem.subject = m.xxsubject
oitem.TO = m.xxto
oitem.cc = '
oitem.bcc = '
oitem.Attachments.ADD("&xxattach")
oitem.body = m.xxbody
oitem.display()