I used Ramanis' code I found in the FAQ to add to a command button in my form.
The form hangs up and email is attempting to send in the backgound. I must use task manager to end the program. What can I add to this code to make it work for me?
Thanks for your help.
o=createobject("outlook.application")
oitem=o.createitem(0)
oitem.subject="Email From VFP6"
oitem.to="someone@testing.com"
** To send copy to addresses..
oitem.body="This mail was sent from vfp using Microsoft Outlook"
** To attach a file
oitem.Attachments.Add("c:\mailroom\daily.pdf")
** to send it
oitem.send
** to clear up
o=.null.
************************************
** EOF **
Thanks.
The form hangs up and email is attempting to send in the backgound. I must use task manager to end the program. What can I add to this code to make it work for me?
Thanks for your help.
o=createobject("outlook.application")
oitem=o.createitem(0)
oitem.subject="Email From VFP6"
oitem.to="someone@testing.com"
** To send copy to addresses..
oitem.body="This mail was sent from vfp using Microsoft Outlook"
** To attach a file
oitem.Attachments.Add("c:\mailroom\daily.pdf")
** to send it
oitem.send
** to clear up
o=.null.
************************************
** EOF **
Thanks.