Hi,
this is the code i use to send mail from VFP.
Can i add attachment to the mail?
Thanks
cSubject = "Mail using VFP"
cAddress = "name@site.be"
cBody = "Eddy : this is a mail from foxpro"
DO doMail WITH cSubject,cAddress,cBody
**********************************************************
PROCEDURE doMail
PARAMETERS cSubject, cAddress, cBody
o=createobject("outlook.application"
oitem=o.createitem(0)
oitem.subject= cSubject
oitem.to= cAddress
oitem.body= cBody
*
oitem.send
o=.null.
RETURN
this is the code i use to send mail from VFP.
Can i add attachment to the mail?
Thanks
cSubject = "Mail using VFP"
cAddress = "name@site.be"
cBody = "Eddy : this is a mail from foxpro"
DO doMail WITH cSubject,cAddress,cBody
**********************************************************
PROCEDURE doMail
PARAMETERS cSubject, cAddress, cBody
o=createobject("outlook.application"
oitem=o.createitem(0)
oitem.subject= cSubject
oitem.to= cAddress
oitem.body= cBody
*
oitem.send
o=.null.
RETURN