Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Outlook Automation Redemption
Message
From
25/04/2005 15:29:35
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Outlook Automation Redemption
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01008202
Message ID:
01008202
Views:
60
Greetings,
I'm sending a VFP9 report as HTML in Email OK (code below)
But if I try to FW: the email elsewhere, my FW message text is
displayed Underneath the original html report.
Can these two live together w/o conflict?

Also if I don't "preset" the .Body with some text,
I can never see the HTML report in my SENT ITEMS box
where the Body of the email is supposed to be - it's blank!?
The Email goes to my INBOX w/report fine though.
But it takes a while to arrive.(1-2mins)

oOutlook = CREATEOBJECT("outlook.application")
oSafeItem = CREATEOBJECT("redemption.safeMailItem")
oNameSpace = oOutlook.GetNameSpace( "MAPI" )

oMailS = oOutlook.CreateItem( 0 )
oSafeItem.item = oMailS

oSafeItem.subject = "Subject Matters Too"
oSafeItem.Body = ;
"this Body gets overwritten by HtmlBody- also w/o this, you never see HTML in SENT ITEMS box"
oSafeItem.HtmlBody = FILETOSTR("g:\code\con2000\data\report1.htm")
oSafeItem.Recipients.Add("yourself@.com")

oSafeItem.send
Next
Reply
Map
View

Click here to load this message in the networking platform