General information
Title:
Automate email recipient with VFP/Word/oDoc.sendmail()
I'm creating a VFP app to generate invoices in Word and automatically email them to the customer. I am using 'Microsoft Office Automation with 'Visual Foxpro' as a guide. I would prefer to create the document in Word and then use SendMail to email it directly, instead of saving the document, starting Outlook, and emailing from there.
I can't figure out how to specify the recipients email address. I'm using the following couple of lines to initiate the email.
oWord.Options.SendMailAttach = True
oDoc.SendMail()
Any help would be greatly appreceiated.
Larry Morelli
(248) 640-7114
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only