David Higgs
Programmer
I have been looking at the following thread by ‘Steve-vfp9user’
[link ][/url]
and have tried the code which meets my needs except that I would like to be able to send an email from Outlook using an email account other than the default email account.
What do I need to do to achieve this?
Regards,
David
Recreational Developer and End User of VFP for my personal use in 'Amateur Radio' and 'British Railways' related Applications.
[link ][/url]
Code:
oOutlook = Createobject('Outlook.Application')
oNameSpace = oOutlook.getnamespace('MAPI')
oOutbox = oNameSpace.GetDefaultFolder(4)
oItems = oOutbox.Items
oMailItem = oItems.Add(0)
oMailItem.To = "email_address.com"
oMailItem.Subject = "Test message"
oMailItem.HtmlBody = "Message sent from VFP"
oMailItem.Send
and have tried the code which meets my needs except that I would like to be able to send an email from Outlook using an email account other than the default email account.
What do I need to do to achieve this?
Regards,
David
Recreational Developer and End User of VFP for my personal use in 'Amateur Radio' and 'British Railways' related Applications.