Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Automating MS Fax
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00065552
Message ID:
00065632
Views:
43
>>>There isn't a single command, but you can use Exchange's object model to create a
>>>message and set the properties so that it goes where you want it without further
>>>user intervention.
>>Search in KB, there is excellent example there.
>
>I'm assuming you mean the UT's KB, but I can't search, and I couldn't find it by
>hand. Could you be a little more specific? Thanks. :-)

For some reason cannot find it now. It was written by Matt Mc Donnel. Here is small example how to send email from VFP-Exchange:
if type('oSession')<>"O"
	oSession=createobject("MAPI.Session")
	oSession.Logon("MS Exchange Settings",.f.)
endif
oMessage=oSession.OutBox.Messages.Add()
oMessage.Subject="VFP Test"
oMessage.Text="superfox test"
oRecipient=oMessage.Recipients.Add()
with oRecipient
	.Name="ed pikman"
	.Address="SMTP:epikman@usa.net"
	.AddressEntry.Type="SMTP"
	.AddressEntry.Address="epikman@usa.net"
endwith
oMessage.Update()
oMessage.Send(.t.,.f.)
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform