Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MailMerge to e-mail question
Message
From
21/11/2002 13:09:49
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00725313
Message ID:
00725352
Views:
8
It should. Below is a sample of my VFP code (where I put the contents of inner text from a website in a dbf memo field and then included it in the body of the email message):
Set Default To c:\programnotes\redemption
Use c:\programnotes\innertext
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")	
	.Recipients.ResolveAll 
	.subject = "Test Email with Redemption"
	.HTMLBody = innertext.chtml		&& memo field contains innertext table
	.Save()
	.Send()
Endwith
* -------------------------------------
>Thanks for the link Tracy. I just realized I should have been more clear and stated that the mailmerge to email is being done from VFP via OLE automation. Will Outlook Redemption work/help for this situation as well?
>
>>http://www.dimastr.com/redemption
>>
>>>I am working on a mailmerge in Word to merge directly to an email. I have the actual mailmerge to an email figured out but I keep getting the following and wonder if there is a way to suppress it.
>>>
>>>Outlook Express
>>>
>>>A program is attempting to send the following e-mail message on your behalf:
>>>
>>>To:
>>>Subject:
>>>
>>>Would you like to send the message?
.·*´¨)
.·`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
Reply
Map
View

Click here to load this message in the networking platform