I was refered to some VB code that I am attempting to convert to work in my VFP7 application.
set sItem = CreateObject("Redemption.SafeMailItem"
sItem.Item = MailItem
tag = sItem.GetIDsFromNames("{00020386-0000-0000-C000-000000000046}", "From"
tag = tag or &H1E 'the type is PT_STRING8
sItem.Fields(Tag) = "Someone <whoever@domain.com>"
sItem.Subject = sItem.Subject 'to trick Outlook into thinking that something has changed
sItem.Save
This code should enable me to force Outlook (via Redemption) to send the email (created in different code) using one of Outlook's non-default Email Accounts.
Most of the code is pretty straight forward, but the line which appears to be a Logical OR remains a mystery to me.
How to get that to work in VFP7?
And, what is a PT_STRING8?
Your advice and suggestions are greatly appreciated.
Thanks,
I_Forgot
set sItem = CreateObject("Redemption.SafeMailItem"
sItem.Item = MailItem
tag = sItem.GetIDsFromNames("{00020386-0000-0000-C000-000000000046}", "From"
tag = tag or &H1E 'the type is PT_STRING8
sItem.Fields(Tag) = "Someone <whoever@domain.com>"
sItem.Subject = sItem.Subject 'to trick Outlook into thinking that something has changed
sItem.Save
This code should enable me to force Outlook (via Redemption) to send the email (created in different code) using one of Outlook's non-default Email Accounts.
Most of the code is pretty straight forward, but the line which appears to be a Logical OR remains a mystery to me.
How to get that to work in VFP7?
And, what is a PT_STRING8?
Your advice and suggestions are greatly appreciated.
Thanks,
I_Forgot