Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP, Outlook and Redemption
Message
From
31/10/2002 10:42:39
 
 
To
30/10/2002 09:42:27
Alan Harris-Reid
Baseline Data Services
Devon, United Kingdom
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00716850
Message ID:
00717346
Views:
25
Hi
I tested your code (with minor modifications to use html code found in the memo field of a table I created) and it worked fine (the html code was included in the body of the message) I ran this from the same directory where I installed redemption:
Set Default To c:\programnotes\redemption  && testing purposes only
Use c:\programnotes\innertext              && testing purposes only
Go Top                                     && ""

Local oOutLook, oItem, oSafeItem, oNameSpace

oOutLook = Createobject('Outlook.Application') && open outlook
oSafeItem = Createobject('Redemption.SafeMailItem') && open redemption

oNameSpace = oOutLook.GetNameSpace('MAPI')
oNameSpace.Logon

oItem = oOutLook.createitem(0) && create new mail message
oSafeItem.Item = oItem && create safe item object

With oSafeItem
	.Recipients.Add("someone@somewhere.com") && substituted my email addr	
	.Recipients.ResolveAll 
	.subject = "Test Email with Redemption"
	.HTMLBody = innertext.chtml	&& testing purposes only
	.Save()
	.Send()
Endwith
Tracy
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform