Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP, Outlook and Redemption
Message
De
31/10/2002 10:42:39
 
 
À
30/10/2002 09:42:27
Alan Harris-Reid
Baseline Data Services
Devon, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00716850
Message ID:
00717346
Vues:
26
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"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform