>I am currently sending emails from VFP via. Outlook. Because I am using XP I am getting the (in)famous error message "A program is trying to automatically send e-mail on your behalf. Do you want to allow this?..." To get around this I have downloaded and installed Redemption...
Alan,
I have also been working with Redemption. Here's code that worked for me.:
oOutlook = GETOBJECT(, "Outlook.Application")
oMailItem = oOutlook.CreateItem(0)
oSafeMailItem = CREATEOBJECT("Redemption.SafeMailItem")
oSafeMailItem.Item = oMailItem
oSafeMailItem.Subject = "This is the subject"
oSafeMailItem.Recipients.Add("cindy.winegarden@mvps.org")
lResolved = oSafeMailItem.Recipients.ResolveAll()
lSent = oSafeMailItem.Send()